1. Dynamic finders for Mongoid

    Monday 20th of September, 2010 at 2:25pm Permalink.

    I’ve been busy over the last while switching a Rails 3 application over from ActiveRecord to Mongoid. In a lot of ways it has gone a lot less painfully than I expected, however one of the main problems I ran into was the common use of dynamic finders in controllers:

    Mongoid (at the time of this writing) doesn’t officially support dynamic finders, so I have done one of my “minimum viable implementation” versions, available on Github.  Please feel free to fork and send patches.

  2. blog comments powered by Disqus

Archive