lib/abilities/railtie.rb in abilities-0.0.4 vs lib/abilities/railtie.rb in abilities-0.1.0

- old
+ new

@@ -1,14 +1,14 @@ 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 + + config.after_initialize do + load Rails.root.join('config/abilities.rb') end end end