More rubyish finders

Posted by Colin A. Bartlett Wed, 17 Oct 2007 18:37:00 GMT

I just came across this little plugin which seems to make the writing of ActiveRecord finders much more rubyesque.

query = User.find do
    name = persons_name?
end

Definitely seems nicer then:

User.find(:conditions=>["name=?",persons_name])