schema_based_api 2.1.16 → 2.1.17
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
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: df4ff1283f15f443043bf344a44b33e5604e270fa839a90ad5bd33539745e706
|
4
|
+
data.tar.gz: 64287210b74b507c711d9910cd9945ffaee340bca368223f2433e1835907f466
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6ecc49928f52313500e8d8ffc7812d2aaab408e7ce2b815d00a1b1ee11dcdb9608cfaaad7844b65191c994d8424216b35c338359c66118c9428655f298769e08
|
7
|
+
data.tar.gz: 68f548b78ff0ca0347c833d38691d770964cd85333d9c7e521278cea4fab8a544e202a44153c155bf1a5c90948a71ced4d3119e46784cb9a69bb2c8ee0a2ab67
|
@@ -1,6 +1,6 @@
|
|
1
1
|
class Api::V2::ApplicationController < ActionController::API
|
2
2
|
# For the DSL part
|
3
|
-
include ActiveHashRelation
|
3
|
+
# include ActiveHashRelation
|
4
4
|
# Actions will be authorized directly in the action
|
5
5
|
include CanCan::ControllerAdditions
|
6
6
|
include ::ApiExceptionManagement
|
@@ -18,7 +18,11 @@ module SchemaBasedApiRole
|
|
18
18
|
# accepts the [:only, :except, :methods, :include] keys.
|
19
19
|
cattr_accessor :json_attrs
|
20
20
|
@@json_attrs = SchemaBasedApi.smart_merge((json_attrs || {}), {
|
21
|
-
except: [
|
21
|
+
except: [
|
22
|
+
:lock_version,
|
23
|
+
:created_at,
|
24
|
+
:updated_at
|
25
|
+
],
|
22
26
|
include: [:users]
|
23
27
|
})
|
24
28
|
|
@@ -22,7 +22,11 @@ module SchemaBasedApiUser
|
|
22
22
|
# accepts the [:only, :except, :methods, :include] keys.
|
23
23
|
cattr_accessor :json_attrs
|
24
24
|
@@json_attrs = SchemaBasedApi.smart_merge((json_attrs || {}), {
|
25
|
-
except: [
|
25
|
+
except: [
|
26
|
+
:lock_version,
|
27
|
+
:created_at,
|
28
|
+
:updated_at
|
29
|
+
],
|
26
30
|
include: [:roles]
|
27
31
|
})
|
28
32
|
|
data/lib/schema_based_api.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: schema_based_api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.1.
|
4
|
+
version: 2.1.17
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gabriele Tassoni
|
@@ -100,20 +100,6 @@ dependencies:
|
|
100
100
|
- - "~>"
|
101
101
|
- !ruby/object:Gem::Version
|
102
102
|
version: '2.3'
|
103
|
-
- !ruby/object:Gem::Dependency
|
104
|
-
name: active_hash_relation
|
105
|
-
requirement: !ruby/object:Gem::Requirement
|
106
|
-
requirements:
|
107
|
-
- - "~>"
|
108
|
-
- !ruby/object:Gem::Version
|
109
|
-
version: '1.4'
|
110
|
-
type: :runtime
|
111
|
-
prerelease: false
|
112
|
-
version_requirements: !ruby/object:Gem::Requirement
|
113
|
-
requirements:
|
114
|
-
- - "~>"
|
115
|
-
- !ruby/object:Gem::Version
|
116
|
-
version: '1.4'
|
117
103
|
- !ruby/object:Gem::Dependency
|
118
104
|
name: rack-cors
|
119
105
|
requirement: !ruby/object:Gem::Requirement
|