Class: Overule::RuleActivity

Inherits:
ActiveRecord::Base
  • Object
show all
Includes:
Mongoid::Document, RuleActivityBehavior
Defined in:
app/models/overule/rule_activity.rb,
app/models/overule/rule_activity.rb

Constant Summary

Constants included from RuleActivityBehavior

Overule::RuleActivityBehavior::ACTIONS

Instance Method Summary collapse

Methods included from RuleActivityBehavior

#changed_fields, #snapshot

Instance Method Details

#diffObject



34
35
36
37
# File 'app/models/overule/rule_activity.rb', line 34

def diff
  value = super
  value.is_a?(String) ? JSON.parse(value) : (value || {})
end