Created
February 14, 2011 05:51
-
-
Save knowtheory/825537 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ruby-1.9.2-p0 :006 > visits = Visit.all('visit_time.gte' => DateTime.now.midnight.prev_day.prev_day, 'visit_time.lt' => DateTime.now.midnight.prev_day); '' | |
| => "" | |
| ruby-1.9.2-p0 :010 > urls = visits.map(&:url); '' | |
| EXPECTED: 1297486800 # this is some debug output i put in dm-core | |
| RECORD_VALUE 2011-02-12 08:31:17 -0500 # this is some debug output i put in dm-core | |
| ArgumentError: comparison of Time with 1297486800 failed | |
| from /Users/knowtheory/.rvm/gems/ruby-1.9.2-p0/gems/dm-core-1.0.2/lib/dm-core/query/conditions/comparison.rb:866:in `>=' | |
| from /Users/knowtheory/.rvm/gems/ruby-1.9.2-p0/gems/dm-core-1.0.2/lib/dm-core/query/conditions/comparison.rb:866:in `matches?' | |
| from /Users/knowtheory/.rvm/gems/ruby-1.9.2-p0/gems/dm-core-1.0.2/lib/dm-core/query/conditions/operation.rb:461:in `block in matches?' | |
| from /Users/knowtheory/.rvm/gems/ruby-1.9.2-p0/gems/dm-core-1.0.2/lib/dm-core/query/conditions/operation.rb:159:in `block in each' | |
| from /Users/knowtheory/.rvm/rubies/ruby-1.9.2-p0/lib/ruby/1.9.1/set.rb:222:in `block in each' | |
| from /Users/knowtheory/.rvm/rubies/ruby-1.9.2-p0/lib/ruby/1.9.1/set.rb:222:in `each_key' | |
| from /Users/knowtheory/.rvm/rubies/ruby-1.9.2-p0/lib/ruby/1.9.1/set.rb:222:in `each' | |
| from /Users/knowtheory/.rvm/gems/ruby-1.9.2-p0/gems/dm-core-1.0.2/lib/dm-core/query/conditions/operation.rb:159:in `each' | |
| from /Users/knowtheory/.rvm/gems/ruby-1.9.2-p0/gems/dm-core-1.0.2/lib/dm-core/query/conditions/operation.rb:461:in `all?' | |
| from /Users/knowtheory/.rvm/gems/ruby-1.9.2-p0/gems/dm-core-1.0.2/lib/dm-core/query/conditions/operation.rb:461:in `matches?' | |
| from /Users/knowtheory/.rvm/gems/ruby-1.9.2-p0/gems/dm-core-1.0.2/lib/dm-core/resource.rb:635:in `collection' | |
| from /Users/knowtheory/.rvm/gems/ruby-1.9.2-p0/gems/dm-core-1.0.2/lib/dm-core/associations/many_to_one.rb:158:in `lazy_load' | |
| from /Users/knowtheory/.rvm/gems/ruby-1.9.2-p0/gems/dm-core-1.0.2/lib/dm-core/resource/state/persisted.rb:23:in `lazy_load' | |
| from /Users/knowtheory/.rvm/gems/ruby-1.9.2-p0/gems/dm-core-1.0.2/lib/dm-core/resource/state/persisted.rb:8:in `get' | |
| from /Users/knowtheory/.rvm/gems/ruby-1.9.2-p0/gems/dm-core-1.0.2/lib/dm-core/model/relationship.rb:337:in `url' | |
| from /Users/knowtheory/.rvm/gems/ruby-1.9.2-p0/gems/dm-core-1.0.2/lib/dm-core/collection.rb:511:in `block in each' | |
| from /Users/knowtheory/.rvm/gems/ruby-1.9.2-p0/gems/dm-core-1.0.2/lib/dm-core/support/lazy_array.rb:413:in `block in each' | |
| from /Users/knowtheory/.rvm/gems/ruby-1.9.2-p0/gems/dm-core-1.0.2/lib/dm-core/support/lazy_array.rb:413:in `each' | |
| from /Users/knowtheory/.rvm/gems/ruby-1.9.2-p0/gems/dm-core-1.0.2/lib/dm-core/support/lazy_array.rb:413:in `each' | |
| from /Users/knowtheory/.rvm/gems/ruby-1.9.2-p0/gems/dm-core-1.0.2/lib/dm-core/collection.rb:508:in `each' | |
| from (irb):10:in `map' | |
| from (irb):10 | |
| from /Users/knowtheory/.rvm/rubies/ruby-1.9.2-p0/bin/irb:17:in `<main>'ruby-1.9.2-p0 :011 > |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment