Module: ChangesAreLogged

Defined in:
lib/changes_are_logged.rb,
lib/changes_are_logged/version.rb

Defined Under Namespace

Modules: ClassMethods, InstanceMethods

Constant Summary collapse

VERSION =
'1.2.1'

Class Method Summary collapse

Class Method Details

.included(klass) ⇒ Object



63
64
65
66
67
68
69
70
71
72
73
74
# File 'lib/changes_are_logged.rb', line 63

def self.included(klass)
  klass.class_eval do
    include InstanceMethods
    extend ClassMethods
    attr_accessor :modifying_user_id
    attr_accessor :change_comments
    attr_accessor :log_changes
    attr_reader :log_changes_callback
    after_save :log_it
    has_many :change_logs, :as => :target
  end
end