Module: Attachs::Concern
- Extended by:
- ActiveSupport::Concern
- Defined in:
- lib/attachs/concern.rb
Defined Under Namespace
Modules: ClassMethods
Instance Method Summary collapse
Instance Method Details
#reload(options = nil) ⇒ Object
12 13 14 15 16 17 18 |
# File 'lib/attachs/concern.rb', line 12 def reload(=nil) super.tap do self.class..keys.each do |attribute| instance_variable_set "@#{attribute}", nil end end end |