Sha256: 031e28735227ed656c7004f988bf77d8e85e442ec31ac1b314d3ddaf5a7989a9

Contents?: true

Size: 1.17 KB

Versions: 80

Compression:

Stored size: 1.17 KB

Contents

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

    config.generators do |g|
      g.test_framework :rspec
      g.fixture_replacement :factory_girl, :dir => 'spec/factories'
    end

    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

80 entries across 80 versions & 1 rubygems

Version Path
coalescing_panda-4.6.1 lib/coalescing_panda/engine.rb
coalescing_panda-4.6.0 lib/coalescing_panda/engine.rb
coalescing_panda-4.6.0.rc3 lib/coalescing_panda/engine.rb
coalescing_panda-4.6.0.rc2 lib/coalescing_panda/engine.rb
coalescing_panda-4.6.0.rc1 lib/coalescing_panda/engine.rb
coalescing_panda-4.5.7 lib/coalescing_panda/engine.rb
coalescing_panda-4.5.6 lib/coalescing_panda/engine.rb
coalescing_panda-4.5.5 lib/coalescing_panda/engine.rb
coalescing_panda-4.5.4 lib/coalescing_panda/engine.rb
coalescing_panda-4.5.3 lib/coalescing_panda/engine.rb
coalescing_panda-4.5.2 lib/coalescing_panda/engine.rb
coalescing_panda-4.5.1 lib/coalescing_panda/engine.rb
coalescing_panda-4.5.0 lib/coalescing_panda/engine.rb
coalescing_panda-4.0.11 lib/coalescing_panda/engine.rb
coalescing_panda-4.0.10 lib/coalescing_panda/engine.rb
coalescing_panda-4.0.9 lib/coalescing_panda/engine.rb
coalescing_panda-4.4.1 lib/coalescing_panda/engine.rb
coalescing_panda-4.0.8 lib/coalescing_panda/engine.rb
coalescing_panda-4.4.0 lib/coalescing_panda/engine.rb
coalescing_panda-4.0.7 lib/coalescing_panda/engine.rb