CloudSesame 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/cloud_sesame.gemspec +1 -1
- data/lib/cloud_sesame/query/dsl/sort_methods.rb +4 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 402d2ac3ca7699449421d30384557896148efdf7
|
4
|
+
data.tar.gz: 08c2af5ec2ffcdb840ec623d70fc5a8a9737e5ab
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c7273a5eab74e4bee6c0303994d1a0082f95c797381bcd25796a41bf199d39e4f230151cd42bf82185fcc73ea03785c68dba97e2b747fa9fe6bb01d4c0b05e1b
|
7
|
+
data.tar.gz: 14b5cc980cdf6c325c0fd0848297b6c6852f1bbe525e21b25ddc832e5cbeab29cac19782c29d3506041991c0cc5c9c74609496babd8a33d189139c792fe08085
|
data/Gemfile.lock
CHANGED
data/cloud_sesame.gemspec
CHANGED
@@ -3,12 +3,14 @@ module CloudSesame
|
|
3
3
|
module DSL
|
4
4
|
module SortMethods
|
5
5
|
|
6
|
-
def sort(input =
|
6
|
+
def sort(input = false)
|
7
7
|
if input.is_a? Hash
|
8
|
-
|
8
|
+
request.sort = input
|
9
9
|
return self
|
10
10
|
elsif input
|
11
11
|
request.sort[input]
|
12
|
+
elsif input.nil?
|
13
|
+
return self
|
12
14
|
else
|
13
15
|
request.sort.sorting_attributes
|
14
16
|
end
|