module Attachs::Concern
Public Instance Methods
reload(options=nil)
click to toggle source
Calls superclass method
# File lib/attachs/concern.rb, line 12 def reload(options=nil) clear_attachments super end
Private Instance Methods
clear_attachments()
click to toggle source
# File lib/attachs/concern.rb, line 24 def clear_attachments self.class.attachments.keys.each do |attribute| instance_variable_set "@#{attribute}", nil end end
initialize_dup(other)
click to toggle source
Calls superclass method
# File lib/attachs/concern.rb, line 19 def initialize_dup(other) clear_attachments super end