Sha256: 48a9b9a8bf1511c8d473e2059c72b43bb81ca641c354fe12e6335578a9761761
Contents?: true
Size: 499 Bytes
Versions: 3
Compression:
Stored size: 499 Bytes
Contents
module VestalVersions # Ties into the existing ActiveRecord::Base#reload method to ensure that version information # is properly reset. module Reload extend ActiveSupport::Concern # 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. def reload(*args) reset_version super end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
geothird_vestal_versions-1.2.5 | lib/vestal_versions/reload.rb |
geothird_vestal_versions-1.2.4 | lib/vestal_versions/reload.rb |
geothird_vestal_versions-1.2.3 | lib/vestal_versions/reload.rb |