Permalink
Browse files

fix ActiveModel::Validations.validators_on doc

  • Loading branch information...
1 parent cbfcd9d commit d61241b0600c233b9f93ceaa2a009d8ac0b41d5f @darai2k darai2k 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 d61241b

Please sign in to comment.