Sha256: 94c4846d9b10d20ee8d4760d809f04fef9ae81356d9fc5837f18e3eae6da2862

Contents?: true

Size: 366 Bytes

Versions: 3

Compression:

Stored size: 366 Bytes

Contents

module Crumbs
  class Railtie < Rails::Railtie

    config.before_initialize do
      load Rails.root.join('config/crumbs.rb')
    end

    initializer 'crumbs.action_controller' do
      ActiveSupport.on_load :action_controller do
        ::ActionController::Base.include(
          Crumbs::Extensions::ActionController::Base
        )
      end
    end

  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
crumbs-5.1.1 lib/crumbs/railtie.rb
crumbs-5.1.0 lib/crumbs/railtie.rb
crumbs-4.0.0.1 lib/crumbs/railtie.rb