John Merlino
2012-Mar-23 21:48 UTC
difference between merging a hash in ruby and using merge_conditions of activerecord
The ruby library comes with a method called merge that allows you to merge two hashes. So then why does merge_conditions exist in activereocrd, which appears to be doing the same thing. thanks for response -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Colin Law
2012-Mar-23 21:58 UTC
Re: difference between merging a hash in ruby and using merge_conditions of activerecord
On 23 March 2012 21:48, John Merlino <stoicism1-YDxpq3io04c@public.gmane.org> wrote:> The ruby library comes with a method called merge that allows you to > merge two hashes. So then why does merge_conditions exist in > activereocrd, which appears to be doing the same thing.I don''t think merge_conditions /does/ exist any more (in Rails 3). Colin -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.