Giter Site home page Giter Site logo

activeadmin about active_reload HOT 6 CLOSED

paneq avatar paneq commented on September 22, 2024
activeadmin

from active_reload.

Comments (6)

paneq avatar paneq commented on September 22, 2024

Can you provide a demo app to demonstrate the issue ? I've never used activeadmin so I don't even know where to start. Something really simple would be great.

from active_reload.

steverandy avatar steverandy commented on September 22, 2024

I think active_reload have bug when loading a Rails Engine. I have an issue where a helper could not be found when I access the rails engine within the parent app.

from active_reload.

paneq avatar paneq commented on September 22, 2024

I can confirmed that " the menu is not rendered anymore after the first request". I'm investigating this now.

from active_reload.

paneq avatar paneq commented on September 22, 2024
      # Don't eagerload our configs, we'll deal with them ourselves
      Rails.application.config.eager_load_paths = Rails.application.config.eager_load_paths.reject do |path| 
        load_paths.include?(path)
      end

      # Dispatch request which gets triggered once in production
      # and on every require in development mode
      ActionDispatch::Callbacks.to_prepare :active_admin do
        ActiveAdmin.unload!
        Rails.application.reload_routes!
      end


    # Removes all the controllers that were defined by registering
    # resources for administration.
    #
    # We remove them, then load them on each request in development
    # to allow for changes without having to restart the server.
    def unload!
      namespaces.values.each{|namespace| namespace.unload! }
      self.namespaces = {}
      @@loaded = false
    end

from active_reload.

paneq avatar paneq commented on September 22, 2024

This is hard...

from active_reload.

paneq avatar paneq commented on September 22, 2024

I am closing all issues since I no longer maintain this gem and it was incorporated into Rails 3.2.

from active_reload.

Related Issues (13)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.