Hi Stefan!
Thanks for your response.
In this case, I'm just defaulting to the typical Hobo index handling, where
my "scopes" hash is passed to the model:
@entities = Entity
.apply_scopes(scopes)
.paginate(:per_page => 50, :page => params[:page])
So, nothing really unusual.
If I look at what *scopes* holds after the merge, I see:
[1] crs(#<Admin::EntitiesController>) ยป scopes
=> {
:search => [
[0] nil,
[1] :fileno,
[2] :name
],
:order_by => nil,
:status_is => "active",
:entity_type_is => "corporation"
}
So, both attributes are definitely there. I'm just not sure why they
wouldn't be getting down to the query against PostgreSQL. I'm on Rails
4.0.8, Ruby 2.1.4, OS X, using activerecord-postgresql-adapter version
0.0.1.
Tim
On Friday, June 12, 2015 at 4:26:24 PM UTC-4, Stefan Haslinger wrote:
>
> Hash. I meant Hash. To tired already...
>
--
You received this message because you are subscribed to the Google Groups "Hobo
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/hobousers.
For more options, visit https://groups.google.com/d/optout.