> This is expected as Ruby 1.9 defines those methods directly on Symbol, and 
> Sequel doesn't override methods defined by ruby.
>
>
Jeremy, any specific reason why you would not recommend defining custom 
Symbol operators in order to workaround Symbol issue? See code below... 
First obvious reason that struck me that there is no guarantee that the 
future ruby versions won't have some operators defined. Which sure will 
break this workaround. Any other factors to consider?

class Symbol
  def >=(arg)
    (Sequel.expr(self) >= arg)
  end

  def >(arg)
    (Sequel.expr(self) > arg)
  end

  def <=(arg)
    (Sequel.expr(self) <= arg)
  end

  def <(arg)
    (Sequel.expr(self) < arg)
  end
end

-- 
You received this message because you are subscribed to the Google Groups 
"sequel-talk" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/sequel-talk/-/gv7SVh_DNxMJ.
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/sequel-talk?hl=en.

Reply via email to