Permalink
Browse files

Use Plucky::Methods instead of hacked version.

  • Loading branch information...
1 parent c3bb647 commit 3a857d8e6adb31d850763b5f0301bfa6b79e970a @jnunemaker committed Apr 20, 2012
Showing with 3 additions and 11 deletions.
  1. +2 −10 lib/toy/mongo/querying.rb
  2. +1 −1 spec/toy/mongo/querying_spec.rb
View
@@ -3,15 +3,7 @@ module Mongo
module Querying
extend ActiveSupport::Concern
- 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,
- ]
+ PluckyMethods = Plucky::Methods
module ClassMethods
def transformer
@@ -108,4 +100,4 @@ def atomic_update(update, opts={})
end
end
end
-end
+end
@@ -206,4 +206,4 @@
User.get_multi(@user1.id, @user2.id)
end
end
-end
+end

0 comments on commit 3a857d8

Please sign in to comment.