Sha256: bd0238ebec89c318598adbd405a1f358cb12ad26453984c252fa2e69a3191507

Contents?: true

Size: 437 Bytes

Versions: 3

Compression:

Stored size: 437 Bytes

Contents

module Nitrolinks
  module Rails

    class Engine < ::Rails::Engine
      isolate_namespace Nitrolinks

      config.nitrolinks = ActiveSupport::OrderedOptions.new
      config.nitrolinks.auto_include = true

      initializer :turbolinks do |app|
        ActiveSupport.on_load(:action_controller) do
          if app.config.nitrolinks.auto_include
            include Controller
          end
        end
      end
    end

  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
nitrolinks-rails-0.3.0 lib/nitrolinks/rails/engine.rb
nitrolinks-rails-0.2.0 lib/nitrolinks/rails/engine.rb
nitrolinks-rails-0.1.0 lib/nitrolinks/rails/engine.rb