Sha256: 7771e11d146fa13e16550a8f544f6a62eb00231cda6a1ebe7c75f28417767877

Contents?: true

Size: 685 Bytes

Versions: 6

Compression:

Stored size: 685 Bytes

Contents

require 'active_model'

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

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

6 entries across 6 versions & 1 rubygems

Version Path
hashie-model-1.2.3 lib/hashie-model.rb
hashie-model-1.2.1 lib/hashie-model.rb
hashie-model-1.2.0 lib/hashie-model.rb
hashie-model-1.1.0 lib/hashie-model.rb
hashie-model-1.0.1 lib/hashie-model.rb
hashie-model-1.0.0.alpha lib/hashie-model.rb