Permalink
Browse files

Updated human_attribute_name to have same prototype as the original m…

…ethod for compatability.
  • Loading branch information...
1 parent e9d1af8 commit b5196c084f7bf5a8bf940e1b669323818fd4496d @midas committed Nov 13, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/guilded/rails/active_record/human_attribute_override.rb
@@ -21,7 +21,7 @@ def human_name_attributes # :nodoc:
# Transforms attribute key names into a more humane format, such as "First name" instead of "first_name". Example:
# Person.human_attribute_name("first_name") # => "First name"
- def human_attribute_name(attribute_key_name) #:nodoc:
+ def human_attribute_name(attribute_key_name, options={}) #:nodoc:
(read_inheritable_attribute("attr_human_name") || {})[attribute_key_name.to_s] || attribute_key_name.to_s.humanize.titleize
end
end

0 comments on commit b5196c0

Please sign in to comment.