mongoid_query_string_interface 0.1.3 → 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -6,7 +6,11 @@ module Mongoid
6
6
 
7
7
  def filter_by(params={})
8
8
  params = hash_with_indifferent_access(params)
9
- where(filtering_options(params)).order_by(*sorting_options(params)).paginate(pagination_options(params))
9
+ filter_only_by(params).order_by(*sorting_options(params)).paginate(pagination_options(params))
10
+ end
11
+
12
+ def filter_only_by(params={})
13
+ where(filtering_options(hash_with_indifferent_access(params)))
10
14
  end
11
15
 
12
16
  def paginated_collection_with_filter_by(params={})
data/lib/version.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  # encoding: utf-8
2
2
  module Mongoid #:nodoc
3
3
  module QueryStringInterface #:nodoc
4
- VERSION = "0.1.3"
4
+ VERSION = "0.1.4"
5
5
  end
6
6
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mongoid_query_string_interface
3
3
  version: !ruby/object:Gem::Version
4
- hash: 29
4
+ hash: 19
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 3
10
- version: 0.1.3
9
+ - 4
10
+ version: 0.1.4
11
11
  platform: ruby
12
12
  authors:
13
13
  - Vicente Mundim
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-08-10 00:00:00 -03:00
18
+ date: 2010-08-17 00:00:00 -03:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency