Sha256: 8ab909028092db5f3c46cbf70f6d1013e7aa0b5d8ce3eba987b2fd3d3ec057a2
Contents?: true
Size: 577 Bytes
Versions: 4
Compression:
Stored size: 577 Bytes
Contents
module Mobility =begin Module loading ActiveRecord-specific classes for Mobility models. =end module ActiveRecord require "mobility/active_record/attribute_methods" require "mobility/active_record/uniqueness_validator" def self.included(model_class) query_method = Module.new do define_method Mobility.query_method do all end end model_class.extend query_method model_class.const_set(:UniquenessValidator, Class.new(::Mobility::ActiveRecord::UniquenessValidator)) end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
mobility-0.2.3 | lib/mobility/active_record.rb |
mobility-0.2.2 | lib/mobility/active_record.rb |
mobility-0.2.1 | lib/mobility/active_record.rb |
mobility-0.2.0 | lib/mobility/active_record.rb |