revert strip changes for alias/impl

This commit is contained in:
albert
2013-03-26 20:41:17 -04:00
parent a9be96ce8b
commit 5897aa2ef6
2 changed files with 4 additions and 4 deletions

View File

@@ -91,8 +91,8 @@ class TagAlias < ActiveRecord::Base
end end
def normalize_names def normalize_names
self.antecedent_name = antecedent_name.mb_chars.downcase.tr(" ", "_").strip self.antecedent_name = antecedent_name.mb_chars.downcase.tr(" ", "_")
self.consequent_name = consequent_name.downcase.tr(" ", "_").strip self.consequent_name = consequent_name.downcase.tr(" ", "_")
end end
def initialize_creator def initialize_creator

View File

@@ -132,8 +132,8 @@ class TagImplication < ActiveRecord::Base
end end
def normalize_names def normalize_names
self.antecedent_name = antecedent_name.downcase.tr(" ", "_").strip self.antecedent_name = antecedent_name.downcase.tr(" ", "_")
self.consequent_name = consequent_name.downcase.tr(" ", "_").strip self.consequent_name = consequent_name.downcase.tr(" ", "_")
end end
def is_pending? def is_pending?