Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Enhance validations documentation

  • Loading branch information...
commit b2ccae466e12659df97969661dae389ac0eb6e2c 1 parent a2fac64
Oscar Del Ben oscardelben authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  activemodel/lib/active_model/validations.rb
2  activemodel/lib/active_model/validations.rb
View
@@ -65,7 +65,7 @@ module ClassMethods
#
# attr_accessor :first_name, :last_name
#
- # validates_each :first_name, :last_name do |record, attr, value|
+ # validates_each :first_name, :last_name, :allow_blank => true do |record, attr, value|
# record.errors.add attr, 'starts with z.' if value.to_s[0] == ?z
# end
# end
Please sign in to comment.
Something went wrong with that request. Please try again.