Check an array of objects in rails to see if an object contains a value
@array.collect{|object| object.attribute}.include?(value)
February 22nd, 2014
@array.collect{|object| object.attribute}.include?(value)
February 22nd, 2014
© 2013 Hi there. Powered by Postach.io.