lib/authority/railtie.rb in authority-0.9.0 vs lib/authority/railtie.rb in authority-1.0.0.pre2
- old
+ new
@@ -2,9 +2,11 @@
module Authority
class Railtie < ::Rails::Railtie
initializer "authority.controller" do
+ # Include here instead of ApplicationController to avoid being lost when
+ # classes are reloaded in Rails' development mode
ActionController::Base.send(:include, Authority::Controller)
end
end
end