potential fix for alias/implication status bug

This commit is contained in:
r888888888
2016-10-18 00:25:55 -07:00
parent 87447a51c3
commit afa0dcae20
3 changed files with 7 additions and 4 deletions

1
.gitignore vendored
View File

@@ -2,6 +2,7 @@
config/database.yml config/database.yml
config/danbooru_local_config.rb config/danbooru_local_config.rb
config/deploy/*.rb config/deploy/*.rb
config/application.yml
db/*.sqlite3 db/*.sqlite3
log/*.log log/*.log
tmp/* tmp/*

View File

@@ -28,12 +28,13 @@ class TagAliasRequest
end end
def build_tag_alias def build_tag_alias
TagAlias.new( x = TagAlias.new(
:antecedent_name => antecedent_name, :antecedent_name => antecedent_name,
:consequent_name => consequent_name, :consequent_name => consequent_name,
:status => "pending",
:skip_secondary_validations => skip_secondary_validations :skip_secondary_validations => skip_secondary_validations
) )
x.status = "pending"
x
end end
def build_forum_topic(tag_alias_id) def build_forum_topic(tag_alias_id)

View File

@@ -28,12 +28,13 @@ class TagImplicationRequest
end end
def build_tag_implication def build_tag_implication
TagImplication.new( x = TagImplication.new(
:antecedent_name => antecedent_name, :antecedent_name => antecedent_name,
:consequent_name => consequent_name, :consequent_name => consequent_name,
:status => "pending",
:skip_secondary_validations => skip_secondary_validations :skip_secondary_validations => skip_secondary_validations
) )
x.status = "pending"
x
end end
def build_forum_topic(tag_implication_id) def build_forum_topic(tag_implication_id)