This commit is contained in:
albert
2013-03-01 07:06:35 -08:00
parent ecd7870826
commit 35724bef5c

View File

@@ -9,7 +9,7 @@ class TagSubscription < ActiveRecord::Base
validate :creator_can_create_subscriptions, :on => :create
def normalize_name
self.name = name.gsub(/\W/, "_")
self.name = name.gsub(/\s+/, "_")
end
def pretty_name