Module: Attachs::Concern::ClassMethods
- Defined in:
- lib/attachs/concern.rb
Instance Method Summary collapse
Instance Method Details
#attachable? ⇒ Boolean
41 42 43 |
# File 'lib/attachs/concern.rb', line 41 def attachable? .any? end |
#attachments ⇒ Object
37 38 39 |
# File 'lib/attachs/concern.rb', line 37 def ||= {} end |
#inherited(subclass) ⇒ Object
32 33 34 35 |
# File 'lib/attachs/concern.rb', line 32 def inherited(subclass) subclass.instance_variable_set :@attachments, super end |