Module: VestalVersions::Reload
- Extended by:
- ActiveSupport::Concern
- Defined in:
- lib/vestal_versions/reload.rb
Overview
Ties into the existing ActiveRecord::Base#reload method to ensure that version information is properly reset.
Instance Method Summary collapse
-
#reload(*args) ⇒ Object
Adds instance methods into ActiveRecord::Base to tap into the
reload
method.
Instance Method Details
#reload(*args) ⇒ Object
Adds instance methods into ActiveRecord::Base to tap into the reload
method. Overrides ActiveRecord::Base#reload, resetting the instance-variable-cached version number before performing the original reload
method.
10 11 12 13 |
# File 'lib/vestal_versions/reload.rb', line 10 def reload(*args) reset_version super end |