json_voorhees 0.5.1 → 0.5.2
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: 6f6dae86a96efff111c54c233b16cb9684a25c0b
|
4
|
+
data.tar.gz: b6ca5fddf3d936fe4d342bbe873ab8e1932ce202
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9e74872b8509e41f972eadb0e33746c8c0566f2b94d4aa88cce15650e8a4c5ad137492423b9e1bb1ca0dc6fb5276c367d88bc9f6d006895170b000150f6f0001
|
7
|
+
data.tar.gz: 612616969ebe94f26eceb7ac95be43f81cd74ee6b0d9043226a94c429b2c5b008e11378925d724c0ca4d2c1007ffca031435796a443f5d3066d016b0b08d56c0
|
data/README.md
CHANGED
@@ -5,6 +5,9 @@ module <%= module_camel %>
|
|
5
5
|
embed :ids, include: true
|
6
6
|
|
7
7
|
attributes :id
|
8
|
+
<% attributes.each do |pair| %>
|
9
|
+
attributes :<%= pair.split(/:/)[0] %>
|
10
|
+
<% end %>
|
8
11
|
attributes :created_at
|
9
12
|
attributes :updated_at
|
10
13
|
#has_one :bulletin
|
@@ -15,7 +18,7 @@ module <%= module_camel %>
|
|
15
18
|
end
|
16
19
|
|
17
20
|
<% attributes.each do |pair| %>
|
18
|
-
def include_<%= pair.split(/:/)[0] %>?
|
21
|
+
def include_<%= pair.split(/:/)[0] %>?
|
19
22
|
return ::Authorization::<%= module_camel %>::V<%= api_version %>::<%= resource_camel %>.include_created_at?(current_user,object,@options)
|
20
23
|
end
|
21
24
|
<% end %>
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: json_voorhees
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Cleophus Robinson
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-10-
|
11
|
+
date: 2014-10-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|