Permalink
Browse files

Merge pull request #10906 from darai2k/fix-activemodel-validations-doc

fix ActiveModel::Validations.validators_on doc
  • Loading branch information...
2 parents cbfcd9d + d61241b commit 0c0a64c8282d2ba26584bcf4d58fc23049ce9318 @carlosantoniodasilva carlosantoniodasilva committed Jun 10, 2013
Showing with 0 additions and 1 deletion.
  1. +0 −1 activemodel/lib/active_model/validations.rb
View
1 activemodel/lib/active_model/validations.rb
@@ -226,7 +226,6 @@ def clear_validators!
# Person.validators_on(:name)
# # => [
# # #<ActiveModel::Validations::PresenceValidator:0x007fe604914e60 @attributes=[:name], @options={}>,
- # # #<ActiveModel::Validations::InclusionValidator:0x007fe603bb8780 @attributes=[:age], @options={in:0..99}>
# # ]
def validators_on(*attributes)
attributes.flat_map do |attribute|

0 comments on commit 0c0a64c

Please sign in to comment.