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:
parent
9461583d3f
commit
88080e2629
1 changed files with 7 additions and 9 deletions
|
@ -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
|
||||
```
|
||||
|
||||
|
|
Loading…
Reference in a new issue