Module: ActsAsSolr::MongoMapper::ClassMethods

Defined in:
lib/acts_as_solr/mongo_mapper.rb

Instance Method Summary collapse

Instance Method Details

#columns_hashObject


9
10
11
# File 'lib/acts_as_solr/mongo_mapper.rb', line 9

def columns_hash
  keys
end

#merge_conditions(*args) ⇒ Object


17
18
19
20
21
# File 'lib/acts_as_solr/mongo_mapper.rb', line 17

def merge_conditions(*args)
  ret = {}
  args.each{ |a| ret.merge!(a) if a.is_a?(Hash) }
  ret
end

#primary_keyObject


13
14
15
# File 'lib/acts_as_solr/mongo_mapper.rb', line 13

def primary_key
  'id'
end