ernie/meta_search — Issue #93: Search methods for associations
Author: graywh
Created: 2012-03-02 21:14:16+00:00
State: open

Given
```ruby
class Parent < ActiveRecord::Base
scope :current, lambda { where(['lifespan_start <= ?', Date.today]).where(['lifespan_end >= ?', Date.today]) }
search_methods :current
end

class Child < ActiveRecord::Base
belongs_to :parent
end
```
it would be nice to be able to
```ruby
Child.search({ :parent_current => 1 })
```

Currently getting an undefined method `grants_current=' error.