fix error on alias listing

see
http://danbooru.donmai.us/forum_topics/9127?page=85#forum_post_105019
This commit is contained in:
Toks
2015-05-25 15:32:12 -04:00
parent 6a78d75f61
commit e1d10b4258
2 changed files with 4 additions and 4 deletions

View File

@@ -112,11 +112,11 @@ class TagAlias < ActiveRecord::Base
end
def antecedent_tag
Tag.find_by_name(antecedent_name)
Tag.find_or_create_by_name(antecedent_name)
end
def consequent_tag
Tag.find_by_name(consequent_name)
Tag.find_or_create_by_name(consequent_name)
end
def absence_of_transitive_relation

View File

@@ -192,11 +192,11 @@ class TagImplication < ActiveRecord::Base
end
def antecedent_tag
Tag.find_by_name(antecedent_name)
Tag.find_or_create_by_name(antecedent_name)
end
def consequent_tag
Tag.find_by_name(consequent_name)
Tag.find_or_create_by_name(consequent_name)
end
def reload(options = {})