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) = fields.pop else = {} end (fields, ) end |