Sha256: 2440c9813fb2c623e7558beae9b3b8416ad15d05c669511b1e844b8e2cbed77d

Contents?: true

Size: 600 Bytes

Versions: 3

Compression:

Stored size: 600 Bytes

Contents

require 'active_support/dependencies'
require 'active_support/concern'
require 'httparty'
require 'bigdecimal'
require 'auto_strip_attributes'
require 'bitcoin_active_record/models'

module BitcoinActiveRecord
  module_function

  autoload(:Client, 'bitcoin_active_record/client')

  module Models
    lambda do
      path_prefix = 'bitcoin_active_record/models/'

      Dir["#{File.dirname(__FILE__)}/#{path_prefix}*.rb"].map do |file|
        File.basename(file, '.rb')
      end.each do |file_name|
        autoload(file_name.camelize, "#{path_prefix}#{file_name}")
      end
    end.()
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
bitcoin_active_record-0.1.0 lib/bitcoin_active_record.rb
bitcoin_active_record-0.0.2 lib/bitcoin_active_record.rb
bitcoin_active_record-0.0.1 lib/bitcoin_active_record.rb