prettify tagsub names

This commit is contained in:
albert
2013-02-22 14:22:56 -05:00
parent 358b2383f1
commit 127c0874fc
3 changed files with 6 additions and 4 deletions

View File

@@ -12,6 +12,10 @@ class TagSubscription < ActiveRecord::Base
self.name = name.gsub(/\W/, "_")
end
def pretty_name
name.tr("_", " ")
end
def initialize_creator
self.creator_id = CurrentUser.id
end