lib/pagseguro/railtie.rb in pagseguro-0.1.9 vs lib/pagseguro/railtie.rb in pagseguro-0.1.10.beta.0
- old
+ new
@@ -15,9 +15,11 @@
end
initializer "pagseguro.initialize" do |app|
::ActionView::Base.send(:include, PagSeguro::Helper)
::ActionController::Base.send(:include, PagSeguro::ActionController)
+
+ app.paths.app.views << File.dirname(__FILE__) + "/views"
end
config.after_initialize do
require "pagseguro/developer_controller" if PagSeguro.developer?
end