##// END OF EJS Templates
Rails3: use .to_s for overriding human_attribute_name parameter at group model...
Toshi MARUYAMA -
r8849:a4ee104bd7e1
parent child
Show More
@@ -52,7 +52,7 class Group < Principal
52 end
52 end
53
53
54 def self.human_attribute_name(attribute_key_name, *args)
54 def self.human_attribute_name(attribute_key_name, *args)
55 attr_name = attribute_key_name
55 attr_name = attribute_key_name.to_s
56 if attr_name == 'lastname'
56 if attr_name == 'lastname'
57 attr_name = "name"
57 attr_name = "name"
58 end
58 end
General Comments 0
You need to be logged in to leave comments. Login now