Skip to content

Instantly share code, notes, and snippets.

@crash2burn
Created June 26, 2009 03:21
Show Gist options
  • Save crash2burn/136286 to your computer and use it in GitHub Desktop.
Save crash2burn/136286 to your computer and use it in GitHub Desktop.
# NOTE: The sequel version on these machines may be a tiny bit off, but as far as I understand there wasn't any changes to this kind of stuff.
# ruby 1.8
irb(main):024:0> Login.filter(:created_at > Time.now)
=> #<Sequel::MySQL::Dataset: "SELECT * FROM `logins` WHERE (`created_at` > '2009-06-25 23:15:57')">
# ruby 1.9
irb(main):006:0> Login.filter(:created_at > Time.now)
ArgumentError: comparison of Symbol with Time failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment