Skip to content

Instantly share code, notes, and snippets.

@jamie
Created December 31, 2009 00:42
Show Gist options
  • Save jamie/266529 to your computer and use it in GitHub Desktop.
Save jamie/266529 to your computer and use it in GitHub Desktop.
I like the :symbol.comparison syntax, but it looks like
I can't use DataMapper and MongoMapper in the same project. :(
>> require 'dm-core'
=> true
>> require 'mongo_mapper'
=> true
>> :id.lte
=> #<MongoMapper::FinderOperator:0x1022ddd10 @field=:id, @operator="$lte">
>> 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