fixes #70: "_" not a blank space in pool names

This commit is contained in:
albert
2011-09-14 17:47:39 -04:00
parent 22074eed1f
commit d1cf308193
2 changed files with 5 additions and 1 deletions

View File

@@ -46,6 +46,10 @@ class Pool < ActiveRecord::Base
self.creator_id = CurrentUser.id
end
def pretty_name
name.tr("_", " ")
end
def normalize_name
self.name = self.class.normalize_name(name)
end