lib/flail/rails.rb in flail-0.0.3 vs lib/flail/rails.rb in flail-0.0.4

- old
+ new

@@ -1,9 +1,10 @@ require 'flail' require 'flail/rails/rescue_action' if defined?(::ActionController::Base) ::ActionController::Base.send(:include, Flail::Rails::RescueAction) + ::ActionController::Base.send(:include, Flail::Rails::ControllerMethods) end if defined?(::Rails.configuration) && ::Rails.configuration.respond_to?(:middleware) ::Rails.configuration.middleware.insert_after 'ActionController::Failsafe', Flail::Rack end