Sha256: 6615101be71102824350568d6957ea2882466c573d71274f12281c44947afbfb

Contents?: true

Size: 965 Bytes

Versions: 33

Compression:

Stored size: 965 Bytes

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

    {: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

33 entries across 33 versions & 2 rubygems

Version Path
saasy-0.0.2.alpha3 lib/saucy/engine.rb
saasy-0.0.2.alpha2 lib/saucy/engine.rb
saasy-0.0.2.alpha1 lib/saucy/engine.rb
saasy-0.0.1 lib/saucy/engine.rb
saucy-0.8.2 lib/saucy/engine.rb
saucy-0.8.1 lib/saucy/engine.rb
saucy-0.8.0 lib/saucy/engine.rb
saucy-0.7.3 lib/saucy/engine.rb
saucy-0.7.2 lib/saucy/engine.rb
saucy-0.7.1 lib/saucy/engine.rb
saucy-0.7.0 lib/saucy/engine.rb
saucy-0.6.1 lib/saucy/engine.rb
saucy-0.6.0 lib/saucy/engine.rb
saucy-0.5.5 lib/saucy/engine.rb
saucy-0.5.4 lib/saucy/engine.rb
saucy-0.5.3 lib/saucy/engine.rb
saucy-0.5.2 lib/saucy/engine.rb
saucy-0.5.1 lib/saucy/engine.rb
saucy-0.5.0 lib/saucy/engine.rb
saucy-0.4.10 lib/saucy/engine.rb