Module: ProtectedRecord::ChangeLog::Changer
- Defined in:
- lib/protected_record/change_log.rb
Overview
Include this module in models inheriting from AR::Base
Class Method Summary collapse
Class Method Details
.included(base) ⇒ Object
13 14 15 16 17 18 |
# File 'lib/protected_record/change_log.rb', line 13 def self.included(base) # Include this in AR models only return unless base.ancestors.include?(ActiveRecord::Base) base.has_many :change_log_records, class_name: "ProtectedRecord::ChangeLog::Record" end |