Sha256: f7f4daeaeb29869fbd1bace9f8a7802f4d66bcb9b4c4be3c46232284340d03b7

Contents?: true

Size: 349 Bytes

Versions: 4

Compression:

Stored size: 349 Bytes

Contents

module Abilities
  class Railtie < Rails::Railtie

    initializer 'abilites' do
      User rescue {}
      if defined? User
        User.send :include, Abilities::Concern
      end
      ::ActionView::Base.send :include, Abilities::ActionView::Base
      ::ActionController::Base.send :include, Abilities::ActionController::Base
    end

  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
abilities-0.0.4 lib/abilities/railtie.rb
abilities-0.0.3 lib/abilities/railtie.rb
abilities-0.0.2 lib/abilities/railtie.rb
abilities-0.0.1 lib/abilities/railtie.rb