aboutsummaryrefslogtreecommitdiffstats
path: root/activemodel/lib
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2012-06-22 10:51:53 -0700
committerRafael Mendonça França <rafaelmfranca@gmail.com>2012-06-22 10:51:53 -0700
commita232831f2dc0dd2ccec0ab152a87614b1fc95fb0 (patch)
tree3d9a4535629711a0041c010e05ac063e89f7e23d /activemodel/lib
parent35ee8fa3d8b3ad49179f86af2bec2e53af335ac9 (diff)
parent629bc03bf885f8d1450a28972c5bea630a079e85 (diff)
downloadrails-a232831f2dc0dd2ccec0ab152a87614b1fc95fb0.tar.gz
rails-a232831f2dc0dd2ccec0ab152a87614b1fc95fb0.tar.bz2
rails-a232831f2dc0dd2ccec0ab152a87614b1fc95fb0.zip
Merge pull request #6829 from frodsan/misunderstood_param
change param name to improve documentation
Diffstat (limited to 'activemodel/lib')
-rw-r--r--activemodel/lib/active_model/errors.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/activemodel/lib/active_model/errors.rb b/activemodel/lib/active_model/errors.rb
index aba6618b56..6307477145 100644
--- a/activemodel/lib/active_model/errors.rb
+++ b/activemodel/lib/active_model/errors.rb
@@ -87,8 +87,8 @@ module ActiveModel
end
# Do the error messages include an error with key +error+?
- def include?(error)
- (v = messages[error]) && v.any?
+ def include?(attribute)
+ (v = messages[attribute]) && v.any?
end
alias :has_key? :include?