includes performs a join, and returns a ActiveRecord::Relation object. Just 
call .to_a like Frederick Cheung says, and Dalli will be happy :)

-- 
Dheeraj Kumar


On Tuesday 25 December 2012 at 9:50 PM, Jordon Bedwell wrote:

> On Tue, Dec 25, 2012 at 5:09 AM, Pavlo Shabat <[email protected] 
> (mailto:[email protected])> wrote:
> > You are trying to cache a Ruby object which cannot be serialized to
> > memcached.
> > 
> 
> 
> What is "includes" and what does it return? It should be a String,
> Hash ({}), Array ([]), Fixnum (1), Range (1..2) or Float (1.0) for
> Dalli to not bitch about Marshaling. Otherwise you have to build your
> own Marshals for the object which might or might not be worth it.
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Ruby on Rails: Talk" group.
> To post to this group, send email to [email protected] 
> (mailto:[email protected]).
> To unsubscribe from this group, send email to 
> [email protected] 
> (mailto:[email protected]).
> For more options, visit https://groups.google.com/groups/opt_out.
> 
> 


-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to