Sha256: 42c920d48dba148e0814a9040ba5f1d599c52488a75e3121dff8e8ae10ef0b23

Contents?: true

Size: 405 Bytes

Versions: 3

Compression:

Stored size: 405 Bytes

Contents

require 'webtopay/exception'
require 'webtopay/configuration'
require 'webtopay/api'
require 'webtopay_controller'
require 'webtopay_helper'

module WebToPay
  class << self
    attr_accessor :config

    def configure
      self.config ||= Configuration.new
      yield(config)
    end
  end
end

ActionController::Base.send(:include, WebToPayController)
ActionView::Base.send(:include, WebToPayHelper)

Version data entries

3 entries across 3 versions & 2 rubygems

Version Path
nma-webtopay-1.2.1 lib/webtopay.rb
webtopay-1.2.1 lib/webtopay.rb
webtopay-1.2.0 lib/webtopay.rb