Sha256: a66f87882908de4d3dcc92d8124358d6395b5dcb69b50be3c0ae9be13ad108b1

Contents?: true

Size: 377 Bytes

Versions: 4

Compression:

Stored size: 377 Bytes

Contents

module Abilities
  class Railtie < Rails::Railtie

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

    initializer 'abilites.action_controller' do
      ActiveSupport.on_load :action_controller do
        ::ActionController::Base.include(
          Abilities::Extensions::ActionController::Base
        )
      end
    end

  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
abilities-5.1.2 lib/abilities/railtie.rb
abilities-5.1.1 lib/abilities/railtie.rb
abilities-5.1.0 lib/abilities/railtie.rb
abilities-4.0.0.1 lib/abilities/railtie.rb