caboose-cms 0.9.34 → 0.9.35
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 586770e73073bd4af63498eb268323ad299b2c52
|
4
|
+
data.tar.gz: 8b937ba9c1e5e478353d77a9ada8fc1da27990cf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: deec6c98840a36fe8337e57aaf11d8ff98acfaea9b47de3d9cb425518ac85364792866f40388b0a64ef3d168d4717eab365cf2bfb32999e9540b7f42cde5cecd
|
7
|
+
data.tar.gz: 5f64e39453aa297259bf6d777a7b67ee265d612d21d497c308b3d949b21333e5d6678849d8dd99999befbc8533954c2598a00ea1b3b27442f95a09b9523b53f4
|
@@ -37,14 +37,14 @@ module Caboose
|
|
37
37
|
'description' => '',
|
38
38
|
'name_like' => '',
|
39
39
|
'description_like' => '',
|
40
|
-
}
|
40
|
+
}
|
41
41
|
pager = Caboose::Pager.new(params, h, {
|
42
|
-
'model'
|
43
|
-
'sort'
|
44
|
-
'desc'
|
45
|
-
'base_url'
|
42
|
+
'model' => 'Caboose::Site',
|
43
|
+
'sort' => 'name',
|
44
|
+
'desc' => 'false',
|
45
|
+
'base_url' => "/admin/sites",
|
46
46
|
'items_per_page' => 1000
|
47
|
-
})
|
47
|
+
})
|
48
48
|
render :json => {
|
49
49
|
:pager => pager,
|
50
50
|
:models => pager.items.as_json(:include => :domains)
|
@@ -441,14 +441,14 @@ module Caboose
|
|
441
441
|
|
442
442
|
def to_json
|
443
443
|
{
|
444
|
-
:base_url => @options['base_url'],
|
445
|
-
:sort => @options['sort'],
|
446
|
-
:desc => @options['desc'],
|
447
|
-
:item_count => @options['item_count'],
|
448
|
-
:items_per_page => @options['items_per_page'],
|
449
|
-
:page => @options['page'],
|
444
|
+
:base_url => @options ? @options['base_url'] : nil,
|
445
|
+
:sort => @options ? @options['sort'] : nil,
|
446
|
+
:desc => @options ? @options['desc'] : nil,
|
447
|
+
:item_count => @options ? @options['item_count'] : nil,
|
448
|
+
:items_per_page => @options ? @options['items_per_page'] : nil,
|
449
|
+
:page => @options ? @options['page'] : nil,
|
450
450
|
:use_url_params => @use_url_params
|
451
|
-
}
|
451
|
+
}.to_json
|
452
452
|
end
|
453
453
|
end
|
454
454
|
end
|
data/lib/caboose/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: caboose-cms
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.35
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- William Barry
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-12-
|
11
|
+
date: 2016-12-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: pg
|