adelevie/parse_resource — pull request #45 by kevinvangelder (2012-10-10 21:18:27+00:00)
Title: Added to_date_object method for use in finders

Previously the programmer had to manually pass a hash/object to the where method to find a row by a date: `Post.where("date" => ($lt => {"__type" => "Date", "iso" => date.iso8601}))`

With this method all you have to do is pass the method the date: `Post.where("date" => ($lt => Post.to_date_object(date)))`

(my examples may not be formatted perfectly, just trying to get the idea across)