diff --git a/lib/acts_as_taggable_on/tag.rb b/lib/acts_as_taggable_on/tag.rb index d39631ae3..586b39684 100644 --- a/lib/acts_as_taggable_on/tag.rb +++ b/lib/acts_as_taggable_on/tag.rb @@ -2,7 +2,7 @@ module ActsAsTaggableOn class Tag < ::ActiveRecord::Base include ActsAsTaggableOn::Utils - attr_accessible :name + attr_accessible :name if defined?(ActiveModel::MassAssignmentSecurity) ### ASSOCIATIONS: diff --git a/lib/acts_as_taggable_on/tagging.rb b/lib/acts_as_taggable_on/tagging.rb index 9c7bad97d..4bcae5a61 100644 --- a/lib/acts_as_taggable_on/tagging.rb +++ b/lib/acts_as_taggable_on/tagging.rb @@ -8,7 +8,7 @@ class Tagging < ::ActiveRecord::Base #:nodoc: :taggable_id, :tagger, :tagger_type, - :tagger_id + :tagger_id if defined?(ActiveModel::MassAssignmentSecurity) belongs_to :tag, :class_name => 'ActsAsTaggableOn::Tag' belongs_to :taggable, :polymorphic => true @@ -31,4 +31,4 @@ def remove_unused_tags end end end -end \ No newline at end of file +end