Module: VestalVersions::Reload::InstanceMethods
- Defined in:
- lib/vestal_versions/reload.rb
Overview
Adds instance methods into ActiveRecord::Base to tap into the reload
method.
Instance Method Summary collapse
-
#reload_with_versions(*args) ⇒ Object
Overrides ActiveRecord::Base#reload, resetting the instance-variable-cached version number before performing the original
reload
method.
Instance Method Details
#reload_with_versions(*args) ⇒ Object
Overrides ActiveRecord::Base#reload, resetting the instance-variable-cached version number before performing the original reload
method.
17 18 19 20 |
# File 'lib/vestal_versions/reload.rb', line 17 def reload_with_versions(*args) reset_version reload_without_versions(*args) end |