Module: Euston::Projections::MongoProjection::ClassMethods

Defined in:
lib/euston-projections/mongo_projection.rb

Instance Method Summary collapse

Instance Method Details

#get(mongo_spec) ⇒ Object



12
13
14
# File 'lib/euston-projections/mongo_projection.rb', line 12

def get(mongo_spec)
  where(mongo_spec).first rescue nil
end