Sha256: 1e8b9700e57fce8f80dc33d45f767a49a85cdabc4864d8b6bfb1c282a4d957f5
Contents?: true
Size: 688 Bytes
Versions: 8
Compression:
Stored size: 688 Bytes
Contents
module PagSeguro class Railtie < Rails::Railtie generators do require "pagseguro/generator" end initializer :add_routing_paths do |app| if PagSeguro.developer? 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 config.after_initialize do require "pagseguro/developer_controller" if PagSeguro.developer? end end end
Version data entries
8 entries across 8 versions & 1 rubygems