With a regular ActiveRecord/SQL setup in Rails, in console when I execute commands *.where
, *.all
etc., I get back the actual array of record items. However, after switching to Mongoid, I instead get back a criteria. How do I get the actual results?
This is what I get now...
ruby-1.9.2-p180 :001 > App.all
=> #<Mongoid::Criteria
selector: {},
options: {},
class: App,
embedded: false>