diff options
author | Francesco Rodriguez <lrodriguezsanc@gmail.com> | 2012-07-05 11:19:20 -0500 |
---|---|---|
committer | Francesco Rodriguez <lrodriguezsanc@gmail.com> | 2012-07-05 11:19:20 -0500 |
commit | 70c4676d88a11c7a6f0579d69c9e3de1e1cd024e (patch) | |
tree | 4c083ffb0390c8f604bf49ebebbb79160ad95fd4 /activemodel/lib/active_model/validations/inclusion.rb | |
parent | 68df230255b39c0197a211de9d68ab263c65a093 (diff) | |
download | rails-70c4676d88a11c7a6f0579d69c9e3de1e1cd024e.tar.gz rails-70c4676d88a11c7a6f0579d69c9e3de1e1cd024e.tar.bz2 rails-70c4676d88a11c7a6f0579d69c9e3de1e1cd024e.zip |
fix syntax of AM::Validations::HelperMethods examples [ci skip]
Diffstat (limited to 'activemodel/lib/active_model/validations/inclusion.rb')
-rw-r--r-- | activemodel/lib/active_model/validations/inclusion.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activemodel/lib/active_model/validations/inclusion.rb b/activemodel/lib/active_model/validations/inclusion.rb index d97c5779d1..e7ad07f040 100644 --- a/activemodel/lib/active_model/validations/inclusion.rb +++ b/activemodel/lib/active_model/validations/inclusion.rb @@ -22,7 +22,7 @@ module ActiveModel # validates_inclusion_of :gender, in: %w( m f ) # validates_inclusion_of :age, in: 0..99 # validates_inclusion_of :format, in: %w( jpg gif png ), message: "extension %{value} is not included in the list" - # validates_inclusion_of :states, in: ->{ |person| STATES[person.country] } + # validates_inclusion_of :states, in: ->(person) { STATES[person.country] } # end # # Configuration options: |