Sha256: 111f82cfa7dc3f3d7a3ee833f6603a54752566e94b9643b855aa671452cdf913
Contents?: true
Size: 1.03 KB
Versions: 2
Compression:
Stored size: 1.03 KB
Contents
# dependencies # require 'rails' # require 'active_support/core_ext' # modules # FIXME: autoload instead? https :/ / github.com / excid3 / noticed / blob / master / lib / noticed.rb require 'moneytree/version' require 'moneytree/account' require 'moneytree/payment_provider/base' require 'moneytree/payment_provider/stripe' require 'moneytree/engine' module Moneytree PSPS = %i[stripe].freeze mattr_accessor :enabled_psps mattr_accessor :stripe_credentials mattr_accessor :current_account mattr_accessor :oauth_redirect @@enabled_psps = PSPS @@current_account = :current_account @@oauth_redirect = '/' def self.setup yield self end # Errors FIXME: see examples at https://github.com/pay-rails/pay/blob/master/lib/pay.rb#L119 class Error < StandardError; end end # FIXME: See if we need this ActiveSupport.on_load(:action_controller) do # include Moneytree::Controller end ActiveSupport.on_load(:active_record) do # extend Moneytree::Model end ActiveSupport.on_load(:action_view) do # include Moneytree::Helper end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
moneytree-rails-0.1.3 | lib/moneytree.rb |
moneytree-rails-0.1.2 | lib/moneytree.rb |