Sha256: 9048cb36e4488bcb5964ec4ffb4d5d44279f552c9980aab9225f9c7285642734
Contents?: true
Size: 626 Bytes
Versions: 3
Compression:
Stored size: 626 Bytes
Contents
module PagSeguro class Railtie < Rails::Railtie generators do require "pagseguro/generator" end initializer :add_routing_paths do |app| if PagSeguro.developer? require "pagseguro/developer_controller" app.routes_reloader.paths.unshift(File.dirname(__FILE__) + "/routes.rb") end end rake_tasks do load File.dirname(__FILE__) + "/../tasks/pagseguro.rake" end initializer "pagseguro.initialize" do |app| ::ActionView::Base.send(:include, PagSeguro::Helper) ::ActionController::Base.send(:include, PagSeguro::ActionController) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
pagseguro-0.1.2 | lib/pagseguro/railtie.rb |
pagseguro-0.1.1 | lib/pagseguro/railtie.rb |
pagseguro-0.1.0 | lib/pagseguro/railtie.rb |