Permalink
Browse files

Merge pull request #6829 from frodsan/misunderstood_param

change param name to improve documentation
  • Loading branch information...
2 parents 35ee8fa + 629bc03 commit a232831f2dc0dd2ccec0ab152a87614b1fc95fb0 @rafaelfranca rafaelfranca committed Jun 22, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 activemodel/lib/active_model/errors.rb
@@ -87,8 +87,8 @@ def clear
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?

0 comments on commit a232831

Please sign in to comment.