Forum: Ruby on Rails validates_inclusion_of method dealing with array

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
C5b20b09d5d24bd554f703ff0595696b?d=identicon&s=25 Guest (Guest)
on 2007-03-28 03:28

Im working through the agile book and ran across a line which I dont
understadn how it works exactly.

validates_inclusion_of :pay_type, :in => {|disp,
value| value }

Could someone please explain what this part does: {|disp, value| value }

Is it only looking at the second value in the array?

Thanks in advance!
This topic is locked and can not be replied to.