module Attachs::Concern::ClassMethods
Public Instance Methods
attachable?()
click to toggle source
# File lib/attachs/concern.rb, line 49 def attachable? attachments.any? end
attachments()
click to toggle source
# File lib/attachs/concern.rb, line 45 def attachments @attachments ||= {} end
inherited(subclass)
click to toggle source
Calls superclass method
# File lib/attachs/concern.rb, line 40 def inherited(subclass) subclass.instance_variable_set :@attachments, @attachments super end