aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNgoc Dao <ngocdaothanh@gmail.com>2009-02-15 01:39:31 +0800
committerrick <technoweenie@gmail.com>2009-02-15 03:00:58 +0800
commitd7c0da03e62d0fbc478678f8f0f5ddd3511c9026 (patch)
tree9bcb36248498466fa28d0eaeb903b9ece2de30f7
parent706d6a3eddc9c723a25ae1ce1c49be2589092d77 (diff)
Remove created_at and created_on from the default non_versioned_columns
Signed-off-by: rick <technoweenie@gmail.com>
-rw-r--r--lib/acts_as_versioned.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/acts_as_versioned.rb b/lib/acts_as_versioned.rb
index a93cacec4..5a0e6dc62 100644
--- a/lib/acts_as_versioned.rb
+++ b/lib/acts_as_versioned.rb
@@ -180,7 +180,7 @@ module ActiveRecord #:nodoc:
self.version_sequence_name = options[:sequence_name]
self.max_version_limit = options[:limit].to_i
self.version_condition = options[:if] || true
- self.non_versioned_columns = [self.primary_key, inheritance_column, self.version_column, 'lock_version', versioned_inheritance_column, 'created_at', 'created_on'] + options[:non_versioned_columns].to_a.map(&:to_s)
+ self.non_versioned_columns = [self.primary_key, inheritance_column, self.version_column, 'lock_version', versioned_inheritance_column] + options[:non_versioned_columns].to_a.map(&:to_s)
self.version_association_options = {
:class_name => "#{self.to_s}::#{versioned_class_name}",
:foreign_key => versioned_foreign_key,