Rails.cache.fetch("Survey.all") {Survey.all} | Problem only Hash returned, not objects,... nil.incl


#1

Hello,

does anybody know, how to get objects from the returned Custom Cache?
Actually, everything comes back, but is only a Hash, it seems…

#<Survey id: 11, uid: “006CC623A9B”, targeted: “for_me”, name:
“ohjlj”, description: “

kjopo

”, startdate: “2009-05-30”,
enddate: “2009-05-31”, status: “building”, created_at: “2009-05-24
21:23:30”, updated_at: “2009-05-24 21:23:30”>

@surveys.first.is_a? Survey
false

Can anyone help me out here?

Greetings

Rafael