Module: ShadyDB::Attributes::ClassMethods
- Defined in:
- lib/shadydb/attributes.rb
Instance Method Summary collapse
Instance Method Details
#field(name, options = {}) ⇒ Object
45 46 47 |
# File 'lib/shadydb/attributes.rb', line 45 def field(name, = {}) self.fields[name.to_s] = [:default] end |