Module: VestalVersions::Reload
- Defined in:
- lib/vestal_versions/reload.rb
Overview
Ties into the existing ActiveRecord::Base#reload method to ensure that version information is properly reset.
Defined Under Namespace
Modules: InstanceMethods
Class Method Summary collapse
-
.included(base) ⇒ Object
:nodoc:.
Class Method Details
.included(base) ⇒ Object
:nodoc:
5 6 7 8 9 10 11 |
# File 'lib/vestal_versions/reload.rb', line 5 def self.included(base) # :nodoc: base.class_eval do include InstanceMethods alias_method_chain :reload, :versions end end |