capitalize each word of a species/color name (for Swamp Gas)

This commit is contained in:
Emi Matchu 2011-07-12 18:22:16 -04:00
parent dafc922fa5
commit 1caa296359

View file

@ -7,7 +7,7 @@ class PetAttribute < StaticResource
end
def human_name
self.name.capitalize
@human_name ||= self.name.split(' ').each { |word| word.capitalize! }.join(' ')
end
class << self
@ -52,3 +52,4 @@ class PetAttribute < StaticResource
@objects_ordered_by_name = @objects.sort { |a,b| a.name <=> b.name }
end
end