aboutsummaryrefslogtreecommitdiffstats
path: root/activemodel/lib
diff options
context:
space:
mode:
authorRyuta Kamizono <kamipo@gmail.com>2016-08-10 06:36:39 +0900
committerRyuta Kamizono <kamipo@gmail.com>2016-08-10 06:36:39 +0900
commitf006de5dc5a709f5dc8604ebd43f7741da30cd9f (patch)
tree94789c1c7f3c8e1c611a30548cd90ecbb34f98ea /activemodel/lib
parent67d0c9ee93100dbdcafd20b0632e5bef6735888e (diff)
downloadrails-f006de5dc5a709f5dc8604ebd43f7741da30cd9f.tar.gz
rails-f006de5dc5a709f5dc8604ebd43f7741da30cd9f.tar.bz2
rails-f006de5dc5a709f5dc8604ebd43f7741da30cd9f.zip
Fix broken alignments caused by auto-correct commit 411ccbd
Hash syntax auto-correcting breaks alignments. 411ccbdab2608c62aabdb320d52cb02d446bb39c
Diffstat (limited to 'activemodel/lib')
-rw-r--r--activemodel/lib/active_model/errors.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/activemodel/lib/active_model/errors.rb b/activemodel/lib/active_model/errors.rb
index b6ab7ab6b0..45ef14013a 100644
--- a/activemodel/lib/active_model/errors.rb
+++ b/activemodel/lib/active_model/errors.rb
@@ -439,7 +439,8 @@ module ActiveModel
return message if attribute == :base
attr_name = attribute.to_s.tr(".", "_").humanize
attr_name = @base.class.human_attribute_name(attribute, default: attr_name)
- I18n.t(:"errors.format", default: "%{attribute} %{message}",
+ I18n.t(:"errors.format",
+ default: "%{attribute} %{message}",
attribute: attr_name,
message: message)
end