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

Instance Method Details

#reload(*args) ⇒ Object

Overrides ActiveRecord::Base#reload, resetting the instance-variable-cached version number before performing the original reload method.



16
17
18
19
# File 'lib/vestal_versions/reload.rb', line 16

def reload(*args)
  reset_version
  super
end