Sha256: 198ee6521b2ea1b0779e20b83b044624892c6121f82950fe9a48841ceb9f9984
Contents?: true
Size: 461 Bytes
Versions: 3
Compression:
Stored size: 461 Bytes
Contents
class Person < ActiveRecord::Base has_custom_attributes :telephone => :string, :email => :string do |fields| fields.telephone :work, :private, :mobile, :fax fields.email :work, :private fields.date :born_on, :wed_on, :died_on, :on_model => [ :born_on ] end end class Product < ActiveRecord::Base has_custom_attributes :size => :float do |fields| fields.size :width, :height, :depth end end class Location < ActiveRecord::Base end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
custom-attributes-0.1.1 | spec/models.rb |
custom-attributes-0.1.0 | spec/models.rb |
custom-attributes-0.0.1 | spec/models.rb |