Walter Davis wrote in post #1155322: > On Aug 16, 2014, at 9:42 AM, Ronald Fischer wrote: > >> Walter Davis wrote in post #1155317: >>> But adding the two together must (I am >>> guessing here) cause them to both be evaluated as arrays before the >>> addition can succeed. >> >> I don't think this is the case. As I said, I also logged the object >> AFTER adding them together, and it still is a >> Dict::ActiveRecord_Relation. The conversion into an Array must come >> after that, and this means it must happen inside paginate(). >> > > Is it possible that you are getting this: > > [ ActiveRecord_Relation, ActiveRecord_AssociationRelation ]
No, because I printed .class.to_s to the object after catenation, and if it would be an array of whatever content, this would have printed "Array", but it printed "Dict::ActiveRecord_Relation". That's why I conclude that the conversion to an Array must happen within the paginate method itself. Ronald -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscr...@googlegroups.com. To post to this group, send email to rubyonrails-talk@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/e46be0444635568adf2b85379baa71bc%40ruby-forum.com. For more options, visit https://groups.google.com/d/optout.