Module: VestalVersions::Changes
- Defined in:
- lib/vestal_versions/changes.rb
Overview
Provides the ability to manipulate hashes in the specific format that ActiveRecord gives to dirty attribute changes: string keys and unique, two-element array values.
Defined Under Namespace
Modules: HashMethods, InstanceMethods
Class Method Summary collapse
-
.included(base) ⇒ Object
:nodoc:.
Class Method Details
.included(base) ⇒ Object
:nodoc:
5 6 7 8 9 10 11 12 13 |
# File 'lib/vestal_versions/changes.rb', line 5 def self.included(base) # :nodoc: Hash.send(:include, HashMethods) base.class_eval do include InstanceMethods after_update :merge_version_changes end end |