Ruby on Rails
Tuesday, December 25, 2012
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 <pavlo.shabat@gmail.com> wrote:You are trying to cache a Ruby object which cannot be serialized tomemcached.What is "includes" and what does it return? It should be a String,Hash ({}), Array ([]), Fixnum (1), Range (1..2) or Float (1.0) forDalli to not bitch about Marshaling. Otherwise you have to build yourown 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 rubyonrails-talk@googlegroups.com.To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.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 rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment