evilmartians/liquor — pull request #3 by xnutsive (2012-09-21 05:05:40+00:00)
Title: Two more tests for find_all_by function.

Added two more tests to ensure find_all_by behaves in a way suitable for plain dump php programming style.

I found out that you can't access an element by index in the line you use find_all_by like that:
users.find_all_by(occupation: "developer")[0]

And we might want to add an ability to use related object as a search criteria like that:
site.banners.find_all_by(banner_category: category)