1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

The code was not up-to-date

This commit is contained in:
Akira Matsuda 2014-10-07 19:51:55 +09:00
parent 9461583d3f
commit 88080e2629

View file

@ -1833,16 +1833,14 @@ attribute names:
```ruby
def full_messages
full_messages = []
map { |attribute, message| full_message(attribute, message) }
end
each do |attribute, messages|
...
attr_name = attribute.to_s.gsub('.', '_').humanize
attr_name = @base.class.human_attribute_name(attribute, default: attr_name)
...
end
full_messages
def full_message
...
attr_name = attribute.to_s.tr('.', '_').humanize
attr_name = @base.class.human_attribute_name(attribute, default: attr_name)
...
end
```