Commit d9227a89 by Pablo Cantero

Add moped example

parent f048e6f3
......@@ -40,7 +40,10 @@ def index
selector = RansackMongo::Query.parse(params[:q])
# Mongo Ruby Driver
@customers = db.customers.find(selector)
@customers = db['customers'].find(selector)
# Moped
@customers = session[:customers].find(selector)
# Mongoid
@customers = Customer.where(selector)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment