Hi,
I want to cache the result of with_role method, but it is not cached. (do always query to database)
I guess it is because the result of with_role method is not the ActiveRecord::Relation, but I could not know how can I cache this.
I do like this.
Hi, I want to cache the result of with_role method, but it is not cached. (do always query to database) I guess it is because the result of with_role method is not the ActiveRecord::Relation, but I could not know how can I cache this. I do like this.
Thanks.