GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Added a basic implementation of #where to base.rb, filters by all the given keys doing an effective sql 'AND' for all. Each key can have a single or multiple (Array) values, in case it's single it's simple, in case it's multiple, it will look for all values.
Simplified example of how it should work :
Model.where(:id => [1,2]) #=> [#<Model ID=1...>, #<Model ID=2...>]
Model.where(:id => 1, :name => 'test') #=> [#<Model ID=1 NAME='test'...>]
Added a where method.
Merge pull request #24 from dhruvasagar/master
Added #where to base.rb
Hi, I don't believe these changes have been published to rubygems