Sha256: cbfc75eae590614c7730f45b07fc13896e1b2ab7630a1046fa55b67b9053fe35
Contents?: true
Size: 1.19 KB
Versions: 2
Compression:
Stored size: 1.19 KB
Contents
require "saucy" require "rails" require "braintree" module Saucy class Engine < Rails::Engine config.saucy = Configuration.new initializer :braintree_logger, :after => :initialize_logger do Braintree::Configuration.logger = Rails.logger end initializer :filter_credit_card_info do Rails.configuration.filter_parameters += [:password, :card_number, :cardholder_name, :verification_code, :expiration_month, :expiration_year] end initializer 'limits.helper' do |app| ActionView::Base.send :include, LimitsHelper end initializer 'static assets' do |app| app.middleware.insert_after ::ActionDispatch::Static, ::ActionDispatch::Static, "#{root}/public" end initializer 'coupons.helper' do |app| ActionView::Base.send :include, CouponsHelper end {:short_date => "%x"}.each do |k, v| Time::DATE_FORMATS[k] = v end rake_tasks do load "saucy/railties/tasks.rake" end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
saucy-0.10.2 | lib/saucy/engine.rb |
saucy-0.10.1 | lib/saucy/engine.rb |