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.



11
12
13
14
# File 'lib/vestal_versions/reload.rb', line 11

def reload(*args)
  reset_version
  super
end