Method: LeanMotion::Model::ClassMethods#field
- Defined in:
- lib/lean_motion/model.rb
#field(name) ⇒ Object
set a field for the current Model
(see #fields)
284 285 286 287 288 |
# File 'lib/lean_motion/model.rb', line 284 def field(name) @fields ||= [:objectId] @fields << name.to_sym @fields.uniq! end |