Sha256: a9f04f9718d4e6c7fb60b40a049875be9734953dc74f7955dc4f26ff57811207
Contents?: true
Size: 421 Bytes
Versions: 2
Compression:
Stored size: 421 Bytes
Contents
# coding: utf-8 class Dow1 < ActiveRecord::Base include Mastar scope :holiday, lambda { where(:holiday => true) } mastar.key :name end class Dow2 < ActiveRecord::Base include Mastar mastar.value :short_name end class Dow3 < ActiveRecord::Base include Mastar mastar.name :short_name end class Dow4 < ActiveRecord::Base include Mastar mastar :name => :short_name, :value => :name, :key => :name end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
mastar-1.0.0 | spec/models.rb |
mastar-0.9.0 | spec/models.rb |