Sha256: cbe38281b9dbd39667d84bbfe55e787d161a3f1b9df0393f0bde9d664bd99245

Contents?: true

Size: 692 Bytes

Versions: 10

Compression:

Stored size: 692 Bytes

Contents

require 'active_model'

# Load vendored Hashie2 unless it is already loaded.
# We must have version >= 2.0 in order to get the Conversions API.
if defined?(Hashie2)
  raise "Hashie2 >= 2.0.0 required by Hashie2Model." unless Hashie2::VERSION.split('.').first.to_i >= 2
else
  $:.unshift File.expand_path(File.join('..', 'vendor', 'hashie2', 'lib'), File.dirname(__FILE__))
end
require 'hashie2'

require 'active_support'
require 'active_support/core_ext'
require 'active_support/json'
require 'money'

module HashieModel
  extend ActiveSupport::Autoload
  
  autoload :ArrayOf
  autoload :AssociatedValidator
  autoload :Base
  autoload :Money
  
  autoload :Version
  
  include ArrayOf
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
hashie-model-1.3.9 lib/hashie-model.rb
hashie-model-1.3.8 lib/hashie-model.rb
hashie-model-1.3.7 lib/hashie-model.rb
hashie-model-1.3.6 lib/hashie-model.rb
hashie-model-1.3.5 lib/hashie-model.rb
hashie-model-1.3.4 lib/hashie-model.rb
hashie-model-1.3.3 lib/hashie-model.rb
hashie-model-1.3.2 lib/hashie-model.rb
hashie-model-1.3.1 lib/hashie-model.rb
hashie-model-1.3.0 lib/hashie-model.rb