Skip to content

Commit

Permalink
Use Plucky::Methods instead of hacked version.
Browse files Browse the repository at this point in the history
  • Loading branch information
jnunemaker committed Apr 20, 2012
1 parent c3bb647 commit 3a857d8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 11 deletions.
12 changes: 2 additions & 10 deletions lib/toy/mongo/querying.rb
Expand Up @@ -3,15 +3,7 @@ module Mongo
module Querying module Querying
extend ActiveSupport::Concern extend ActiveSupport::Concern


PluckyMethods = [ PluckyMethods = Plucky::Methods
: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,
]


module ClassMethods module ClassMethods
def transformer def transformer
Expand Down Expand Up @@ -108,4 +100,4 @@ def atomic_update(update, opts={})
end end
end end
end end
end end
2 changes: 1 addition & 1 deletion spec/toy/mongo/querying_spec.rb
Expand Up @@ -206,4 +206,4 @@
User.get_multi(@user1.id, @user2.id) User.get_multi(@user1.id, @user2.id)
end end
end end
end end

0 comments on commit 3a857d8

Please sign in to comment.