Hi,
lets consider this:
ws=Log.where(:user_id=>user.id, week_number: wn).exclude(:dsum=>0).exclude(:
day=>date).group_and_count(:user_id, :week_number).select_append{sum(dsum).
as(dsum)}
Is following code the only way how to get "dsum"?
dsum=ws.to_hash.values[0][:dsum]
Thank you for advice.
--
You received this message because you are subscribed to the Google Groups
"sequel-talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/sequel-talk.
For more options, visit https://groups.google.com/d/optout.