Module: Attachs::Concern::ClassMethods
- Defined in:
- lib/attachs/concern.rb
Instance Method Summary collapse
Instance Method Details
#attachable? ⇒ Boolean
49 50 51 |
# File 'lib/attachs/concern.rb', line 49 def attachable? .any? end |
#attachments ⇒ Object
45 46 47 |
# File 'lib/attachs/concern.rb', line 45 def ||= {} end |
#inherited(subclass) ⇒ Object
40 41 42 43 |
# File 'lib/attachs/concern.rb', line 40 def inherited(subclass) subclass.instance_variable_set :@attachments, super end |