Created
December 31, 2009 00:42
-
-
Save jamie/266529 to your computer and use it in GitHub Desktop.
This file contains 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
I like the :symbol.comparison syntax, but it looks like | |
I can't use DataMapper and MongoMapper in the same project. :( |
This file contains 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
>> require 'dm-core' | |
=> true | |
>> require 'mongo_mapper' | |
=> true | |
>> :id.lte | |
=> #<MongoMapper::FinderOperator:0x1022ddd10 @field=:id, @operator="$lte"> |
This file contains 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
>> require 'mongo_mapper' | |
=> true | |
>> require 'dm-core' | |
=> ["Infinity"] # Thank you ActiveSupport? | |
>> :id.lte | |
=> #<DataMapper::Query::Operator @target=:id @operator=:lte> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment