Arup Rakshit
2014-Jul-05 06:32 UTC
What is the actual use of ActiveRecord::SpawnMethods#except ?
I really don't understand the actual usecase of the *except* method http://api.rubyonrails.org/classes/ActiveRecord/SpawnMethods.html#method-i-except If I don't want a condition to apply in my _query_, then why should I add it? After adding a condition, what is the point of removing it again. This how the doco http://api.rubyonrails.org/classes/ActiveRecord/SpawnMethods.html#method-i-except is saying. -- ===============Regards, Arup Rakshit ===============Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it. --Brian Kernighan -- 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+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/1689316.T65Ipj2CGF%40linux-wzza.site. For more options, visit https://groups.google.com/d/optout.