Module: Attachable::ClassMethods

Defined in:
app/traits/attachable.rb

Instance Method Summary collapse

Instance Method Details

#attaches(*fields) ⇒ Object



13
14
15
16
17
18
19
20
# File 'app/traits/attachable.rb', line 13

def attaches(*fields)
  if fields.last.is_a?(Hash)
    options = fields.pop
  else
    options = {}
  end
  attaches_with_options(fields, options)
end