This commit is contained in:
albert
2013-04-04 18:03:35 -04:00
parent c481d8d69e
commit cfee419108
2 changed files with 4 additions and 4 deletions

View File

@@ -4,8 +4,8 @@ class TagAliasRequest
attr_reader :antecedent_name, :consequent_name, :reason, :tag_alias, :forum_topic
def initialize(antecedent_name, consequent_name, reason)
@antecedent_name = antecedent_name.tr(" ", "_")
@consequent_name = consequent_name.tr(" ", "_")
@antecedent_name = antecedent_name.strip.tr(" ", "_")
@consequent_name = consequent_name.strip.tr(" ", "_")
@reason = reason
end

View File

@@ -4,8 +4,8 @@ class TagImplicationRequest
attr_reader :antecedent_name, :consequent_name, :reason, :tag_implication, :forum_topic
def initialize(antecedent_name, consequent_name, reason)
@antecedent_name = antecedent_name.tr(" ", "_")
@consequent_name = consequent_name.tr(" ", "_")
@antecedent_name = antecedent_name.strip.tr(" ", "_")
@consequent_name = consequent_name.strip.tr(" ", "_")
@reason = reason
end