lib/flail/railtie.rb in flail-0.0.3 vs lib/flail/railtie.rb in flail-0.0.4
- old
+ new
@@ -8,9 +8,14 @@
Flail.configure do
environment ::Rails.env
host Socket.gethostname
end
+ ActiveSupport.on_load(:action_controller) do
+ require 'flail/rails/controller_methods'
+ include Flail::Rails::ControllerMethods
+ end
+
if defined?(::ActionDispatch::DebugExceptions)
# Rails 3.2.x
require 'flail/rails/action_dispatch'
::ActionDispatch::DebugExceptions.send(:include, Flail::Rails::ActionDispatch)