activerecord-hackery / squeel

Active Record, improved. Live again :)
http://erniemiller.org/2013/11/17/anyone-interested-in-activerecord-hackery/
MIT License
2.4k stars 213 forks source link

less than broken with rails 4.2 #331

Closed twalpole closed 10 years ago

twalpole commented 10 years ago
Record.where { created_at > 1.hour.ago }    # works correctly
Record.where { created_at < 1.hour.ago }   # RuntimeError: unsupported: Time
bigxiang commented 10 years ago

Thank you for reporting this bug, but after I researched it, it's actual a bug of rails/arel. I have submitted a PR rails/arel#304 , but I don't know if it could be merged soon. If you are hurry, you could use my fork branch of arel here :)

konung commented 10 years ago

Experiencing the same issue with lteq running Rails 4.2 beta 2

twalpole commented 10 years ago

@konung An updated arel hasn't been released yet so you need to be using the rails/arel master branch

bigxiang commented 10 years ago

@konung I'm sure this has been solved on rails/arel master branch, so I will close it for now :)

konung commented 10 years ago

Ok thanks