ocean-rails 6.1.1 → 6.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/ocean/version.rb +1 -1
- data/lib/templates/rails/scaffold_controller/controller.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8eeee1f303981f8d6cf4e38c554934bcf39a9013
|
4
|
+
data.tar.gz: e7da13d4718a3ce9c09cfdb9a19e6b6ff7f9b0ed
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bb0b17fc2549fc8eea5de2bc89e7fbdb8f704299c1bc27bc94ddc31f23bfc7519278d3d6fcdf5fbecad96d66a138e2aee9b0efd2d5034d8aab5f2b1b34705172
|
7
|
+
data.tar.gz: ae391fb1565c1cd18fce14f1e9f17fa6bd1d87521e4a1ba21905cee8dcbbba09446ebd7596a37fa5a50de67bdf8c72113cac8db35e0ea6a1b1e3c916148229ee
|
data/lib/ocean/version.rb
CHANGED
@@ -12,7 +12,7 @@ class <%= controller_class_name %>Controller < ApplicationController
|
|
12
12
|
|
13
13
|
# GET <%= route_url %>
|
14
14
|
def index
|
15
|
-
expires_in 0, 's-maxage' =>
|
15
|
+
expires_in 0, 's-maxage' => DEFAULT_CACHE_TIME
|
16
16
|
if stale?(collection_etag(<%= class_name %>))
|
17
17
|
api_render <%= class_name %>.collection(params)
|
18
18
|
end
|
@@ -21,7 +21,7 @@ class <%= controller_class_name %>Controller < ApplicationController
|
|
21
21
|
|
22
22
|
# GET <%= route_url %>/1
|
23
23
|
def show
|
24
|
-
expires_in 0, 's-maxage' =>
|
24
|
+
expires_in 0, 's-maxage' => DEFAULT_CACHE_TIME
|
25
25
|
if stale?(@<%= singular_table_name %>)
|
26
26
|
api_render @<%= singular_table_name %>
|
27
27
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ocean-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 6.1.
|
4
|
+
version: 6.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Peter Bengtson
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-06-
|
11
|
+
date: 2016-06-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|