Sha256: 6435ce77f0fd15cd22abf7f8c649d6cfb998e5703bbc576ee366f1d3eff94596

Contents?: true

Size: 217 Bytes

Versions: 3

Compression:

Stored size: 217 Bytes

Contents

module BitcoinActiveRecord
  module Models
    def bitcoin_active_record_model
      include "BitcoinActiveRecord::Models::#{self}".constantize
    end
  end
end

ActiveRecord::Base.extend(BitcoinActiveRecord::Models)

Version data entries

3 entries across 3 versions & 1 rubygems

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