+1 for reverting this ASAP.
The reason was already very clearly explained in the 4th post of this
thread.
I believe, this is the most important point.

On Wed, Feb 16, 2011 at 8:37 PM, Will Bryant <[email protected]>
wrote:
> And to do it at all breaks the relational algebra idea badly.

Now, let me show you my real world tragedy.

# model
class User
  scope :admin, where(:id => [1, 2, 3, 4])
end

# controller
def admin?
  User.admin.where(:id => session[:user_id]).exists?
end

Imagine what happened to my app!


As for the "OR" API, I think squirrel had the best syntax against
ambiguity.

Book.written_by('david').published  #=> AND

Book.or {
 written_by('david')
 published
}  #=> OR

--
Akira Matsuda<[email protected]>

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Core" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-core?hl=en.

Reply via email to