lib/pagseguro/railtie.rb in pagseguro-0.1.5 vs lib/pagseguro/railtie.rb in pagseguro-0.1.6
- old
+ new
@@ -17,10 +17,10 @@
initializer "pagseguro.initialize" do |app|
::ActionView::Base.send(:include, PagSeguro::Helper)
::ActionController::Base.send(:include, PagSeguro::ActionController)
end
- ::ActiveSupport.on_load(:action_controller) do
+ config.after_initialize do
require "pagseguro/developer_controller" if PagSeguro.developer?
end
end
end