fix error on alias listing
see http://danbooru.donmai.us/forum_topics/9127?page=85#forum_post_105019
This commit is contained in:
@@ -112,11 +112,11 @@ class TagAlias < ActiveRecord::Base
|
|||||||
end
|
end
|
||||||
|
|
||||||
def antecedent_tag
|
def antecedent_tag
|
||||||
Tag.find_by_name(antecedent_name)
|
Tag.find_or_create_by_name(antecedent_name)
|
||||||
end
|
end
|
||||||
|
|
||||||
def consequent_tag
|
def consequent_tag
|
||||||
Tag.find_by_name(consequent_name)
|
Tag.find_or_create_by_name(consequent_name)
|
||||||
end
|
end
|
||||||
|
|
||||||
def absence_of_transitive_relation
|
def absence_of_transitive_relation
|
||||||
|
|||||||
@@ -192,11 +192,11 @@ class TagImplication < ActiveRecord::Base
|
|||||||
end
|
end
|
||||||
|
|
||||||
def antecedent_tag
|
def antecedent_tag
|
||||||
Tag.find_by_name(antecedent_name)
|
Tag.find_or_create_by_name(antecedent_name)
|
||||||
end
|
end
|
||||||
|
|
||||||
def consequent_tag
|
def consequent_tag
|
||||||
Tag.find_by_name(consequent_name)
|
Tag.find_or_create_by_name(consequent_name)
|
||||||
end
|
end
|
||||||
|
|
||||||
def reload(options = {})
|
def reload(options = {})
|
||||||
|
|||||||
Reference in New Issue
Block a user