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.3.2 lib/coalescing_panda/engine.rb
coalescing_panda-4.3.0 lib/coalescing_panda/engine.rb
coalescing_panda-4.2.2 lib/coalescing_panda/engine.rb
coalescing_panda-4.2.1 lib/coalescing_panda/engine.rb
coalescing_panda-4.2.0 lib/coalescing_panda/engine.rb
coalescing_panda-4.1.26 lib/coalescing_panda/engine.rb
coalescing_panda-4.1.25 lib/coalescing_panda/engine.rb
coalescing_panda-4.1.24 lib/coalescing_panda/engine.rb
coalescing_panda-4.1.23 lib/coalescing_panda/engine.rb
coalescing_panda-4.1.22 lib/coalescing_panda/engine.rb
coalescing_panda-4.1.21 lib/coalescing_panda/engine.rb
coalescing_panda-4.1.20 lib/coalescing_panda/engine.rb
coalescing_panda-4.1.19 lib/coalescing_panda/engine.rb
coalescing_panda-4.1.18 lib/coalescing_panda/engine.rb
coalescing_panda-4.1.17 lib/coalescing_panda/engine.rb
coalescing_panda-4.1.16 lib/coalescing_panda/engine.rb
coalescing_panda-4.1.15 lib/coalescing_panda/engine.rb
coalescing_panda-4.0.6 lib/coalescing_panda/engine.rb
coalescing_panda-4.0.5 lib/coalescing_panda/engine.rb
coalescing_panda-4.1.14 lib/coalescing_panda/engine.rb