mongoid_query_string_interface 0.1.3 → 0.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/mongoid_query_string_interface.rb +5 -1
- data/lib/version.rb +1 -1
- metadata +4 -4
|
@@ -6,7 +6,11 @@ module Mongoid
|
|
|
6
6
|
|
|
7
7
|
def filter_by(params={})
|
|
8
8
|
params = hash_with_indifferent_access(params)
|
|
9
|
-
|
|
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
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:
|
|
4
|
+
hash: 19
|
|
5
5
|
prerelease: false
|
|
6
6
|
segments:
|
|
7
7
|
- 0
|
|
8
8
|
- 1
|
|
9
|
-
-
|
|
10
|
-
version: 0.1.
|
|
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-
|
|
18
|
+
date: 2010-08-17 00:00:00 -03:00
|
|
19
19
|
default_executable:
|
|
20
20
|
dependencies:
|
|
21
21
|
- !ruby/object:Gem::Dependency
|