Module: Diffable
- Defined in:
- lib/diffable.rb,
lib/diffable/version.rb
Overview
Diffable provides a mixin that can be used to extend any ActiveRecord object to provide diff functionality. Calling the diff method compares the receiver against another object and returns a Hash of differences found (presented as a description of the changes between the second object and the receiver - as if trying to restore the calling object from its replacement).
Defined Under Namespace
Modules: ClassMethods, InstanceMethods
Constant Summary collapse
- VERSION =
Diffable version you are using
"0.0.1"
Class Method Summary collapse
-
.included(base) ⇒ Object
:nodoc:.
Class Method Details
.included(base) ⇒ Object
:nodoc:
13 14 15 16 |
# File 'lib/diffable.rb', line 13 def self.included base # :nodoc: base.send :include, InstanceMethods base.extend ClassMethods end |