remove grandparenting constraint
This commit is contained in:
@@ -53,7 +53,5 @@ class TagAliasCorrection
|
||||
clear_cache
|
||||
tag_alias.update_cache
|
||||
tag_alias.delay(:queue => "default").update_posts
|
||||
tag_alias.antecedent_tag.fix_post_count if tag_alias.antecedent_tag
|
||||
tag_alias.consequent_tag.fix_post_count if tag_alias.consequent_tag
|
||||
end
|
||||
end
|
||||
|
||||
@@ -30,7 +30,7 @@ class Post < ActiveRecord::Base
|
||||
has_many :disapprovals, :class_name => "PostDisapproval"
|
||||
validates_uniqueness_of :md5
|
||||
validates_presence_of :parent, :if => lambda {|rec| !rec.parent_id.nil?}
|
||||
validate :validate_parent_does_not_have_a_parent
|
||||
# validate :validate_parent_does_not_have_a_parent
|
||||
attr_accessible :source, :rating, :tag_string, :old_tag_string, :last_noted_at, :parent_id, :as => [:member, :privileged, :platinum, :contributor, :janitor, :moderator, :admin, :default]
|
||||
attr_accessible :is_rating_locked, :is_note_locked, :as => [:janitor, :moderator, :admin]
|
||||
attr_accessible :is_status_locked, :as => [:admin]
|
||||
|
||||
@@ -121,5 +121,8 @@ class TagAlias < ActiveRecord::Base
|
||||
)
|
||||
end
|
||||
end
|
||||
|
||||
antecedent_tag.fix_post_count if antecedent_tag
|
||||
consequent_tag.fix_post_count if consequent_tag
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user