Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Ensure that all plucky methods are correctly delegated #266

Closed
jnunemaker opened this Issue · 4 comments

3 participants

@jnunemaker
Owner

order and a few others were missed. Mostly a note to self to throw these in...

  PluckyMethods = [
    :where, :filter, :limit, :skip, :offset, :sort, :order,
    :fields, :ignore, :only,
    :each, :find_each,
    :count, :size, :distinct,
    :last, :first, :all, :paginate,
    :exists?, :exist?, :empty?,
    :to_a, :remove,
  ]
@jnunemaker jnunemaker was assigned
@bkimble

Delegated to the Array that represents embedded collections? That's an issue I am running in to right now -- using order ( and paginate) on an embedded collection and getting "Undefined Method 'order' for Array". If this is the solution I could probably cook up a workaround.

@jnunemaker
Owner

Plucky is not made for use with embedded documents. Embedded documents are just plain old arrays and hashes.

@jnunemaker
Owner

With the latest plucky update we can now use Plucky::Methods

@brianhempel

Locally, I have MM working with Plucky::Methods against plucky head. Need another plucky version bump b/c of my mistake described in mongomapper/plucky@010fef5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.