Sha256: 2c3b55d5317a7b125f34e0b7188eb8211eb0458f3640ed3bd964552dda702bc7
Contents?: true
Size: 436 Bytes
Versions: 1
Compression:
Stored size: 436 Bytes
Contents
module StateObjects class Base def initialize(model) @model = model end def self.state_object_values(*opts) # :nodoc: class_eval <<-EOF def self.symbol '#{opts[0]}'.to_sym end def self.db_value '#{opts[1]}' end def self.label '#{opts[2]}' end EOF end protected def model @model end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
state_objects-0.0.2 | lib/state_objects/base.rb |