Sha256: f711d315820ae9baa9e178ad5d284d9c142fd9f4feff9060e964862e3018df45

Contents?: true

Size: 1.04 KB

Versions: 34

Compression:

Stored size: 1.04 KB

Contents

module CoalescingPanda
  class Engine < ::Rails::Engine
    config.autoload_once_paths += Dir["#{config.root}/lib/**/"]
    isolate_namespace CoalescingPanda

    initializer :append_migrations do |app|
      unless app.root.to_s.match root.to_s
        config.paths["db/migrate"].expanded.each do |expanded_path|
          app.config.paths["db/migrate"] << expanded_path
        end
      end
    end

    initializer 'coalescing_panda.app_controller' do |app|
      OAUTH_10_SUPPORT = true
      ActiveSupport.on_load(:action_controller) do
        include CoalescingPanda::ControllerHelpers
      end
    end

    initializer 'cloaescing_panda.route_helper' do |route|
      ActionDispatch::Routing::Mapper.send :include, CoalescingPanda::RouteHelpers
    end

    initializer 'coalescing_panda.route_options', :after => :disable_dependency_loading do |app|
      ActiveSupport.on_load(:action_controller) do
        #force the routes to load
        Rails.application.reload_routes!
        CoalescingPanda::propagate_lti_navigation
      end
    end

  end
end

Version data entries

34 entries across 34 versions & 1 rubygems

Version Path
coalescing_panda-1.1.20 lib/coalescing_panda/engine.rb
coalescing_panda-1.4.1 lib/coalescing_panda/engine.rb
coalescing_panda-1.4.0 lib/coalescing_panda/engine.rb
coalescing_panda-1.2.2 lib/coalescing_panda/engine.rb
coalescing_panda-1.3.0 lib/coalescing_panda/engine.rb
coalescing_panda-1.2.1 lib/coalescing_panda/engine.rb
coalescing_panda-1.2.0 lib/coalescing_panda/engine.rb
coalescing_panda-1.1.19 lib/coalescing_panda/engine.rb
coalescing_panda-2.0.0 lib/coalescing_panda/engine.rb
coalescing_panda-1.1.18 lib/coalescing_panda/engine.rb
coalescing_panda-1.1.17 lib/coalescing_panda/engine.rb
coalescing_panda-1.1.16 lib/coalescing_panda/engine.rb
coalescing_panda-1.1.15 lib/coalescing_panda/engine.rb
coalescing_panda-1.1.14 lib/coalescing_panda/engine.rb
coalescing_panda-1.1.13 lib/coalescing_panda/engine.rb
coalescing_panda-1.1.12 lib/coalescing_panda/engine.rb
coalescing_panda-1.1.11 lib/coalescing_panda/engine.rb
coalescing_panda-1.1.10 lib/coalescing_panda/engine.rb
coalescing_panda-1.1.8 lib/coalescing_panda/engine.rb
coalescing_panda-1.1.7 lib/coalescing_panda/engine.rb