* Created js popup for some of the secondary links in the main navbar

* aliases/implications must now be approved
* anyone can now submit an alias
This commit is contained in:
albert
2011-10-24 01:01:45 -04:00
parent f94b65f5d5
commit f2f524b87f
11 changed files with 80 additions and 48 deletions

View File

@@ -24,9 +24,9 @@ class TagImplication < ActiveRecord::Base
until children.empty?
all.concat(children)
children = self.class.where(["antecedent_name IN (?) and status = ?", children, "active"]).all.map(&:consequent_name)
children = self.class.where(["antecedent_name IN (?)", children]).all.map(&:consequent_name)
end
end
end.sort
end
end
@@ -40,7 +40,7 @@ class TagImplication < ActiveRecord::Base
def update_descendant_names!
update_descendant_names
save!
update_column(:descendant_names, descendant_names)
end
def update_descendant_names_for_parent
@@ -77,6 +77,7 @@ class TagImplication < ActiveRecord::Base
def process!
update_column(:status, "processing")
update_descendant_names_for_parent
update_posts
update_column(:status, "active")
rescue Exception => e