Method: LeanMotion::Model::ClassMethods#fields

Defined in:
lib/lean_motion/model.rb

#fields(*args) ⇒ Object

set the fields for the current Model

used in method_missing

Parameters:

  • args (Symbol)

    one or more fields



276
277
278
# File 'lib/lean_motion/model.rb', line 276

def fields(*args)
  args.each {|arg| field(arg)}
end