maccman/supermodel — pull request #24 by dhruvasagar (2013-04-19 05:31:59+00:00)
Title: Added #where to base.rb

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 :
```ruby
Model.where(:id => [1,2]) #=> [#, #]
Model.where(:id => 1, :name => 'test') #=> [#]
```