Skip to content

Commit

Permalink
removed commented out deprecated methods
Browse files Browse the repository at this point in the history
  • Loading branch information
jrozner committed Sep 2, 2011
1 parent 77ff983 commit a325748
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions lib/acts_as_audited/auditor.rb
Expand Up @@ -52,10 +52,6 @@ def acts_as_audited(options = {})

options = {:protect => accessible_attributes.empty?}.merge(options)

#class_inheritable_reader :non_audited_columns
#class_inheritable_reader :auditing_enabled
#class_inheritable_reader :audit_associated_with

class_attribute :non_audited_columns, {:instance_writer => false}
class_attribute :auditing_enabled, {:instance_writer => false}
class_attribute :audit_associated_with, {:instance_writer => false}
Expand All @@ -67,8 +63,6 @@ def acts_as_audited(options = {})
'created_at', 'updated_at', 'created_on', 'updated_on']
except |= Array(options[:except]).collect(&:to_s) if options[:except]
end
#write_inheritable_attribute :non_audited_columns, except
#write_inheritable_attribute :audit_associated_with, options[:associated_with]
self.non_audited_columns = except
self.audit_associated_with = options[:associated_with]

Expand All @@ -95,7 +89,6 @@ def acts_as_audited(options = {})
extend ActsAsAudited::Auditor::SingletonMethods
include ActsAsAudited::Auditor::InstanceMethods

#write_inheritable_attribute :auditing_enabled, true
self.auditing_enabled = true
end

Expand Down Expand Up @@ -261,13 +254,11 @@ def without_auditing(&block)

# Disable auditing.
def disable_auditing
#write_inheritable_attribute :auditing_enabled, false
self.auditing_enabled = false
end

# Enable auditing.
def enable_auditing
#write_inheritable_attribute :auditing_enabled, true
self.auditing_enabled = true
end

Expand Down

0 comments on commit a325748

Please sign in to comment.