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: 671eb99ac386ee3d1592c495f9b7dccc20127d9c2acb9bb42ca68666e063f037
4
- data.tar.gz: a2dd8e4bb9a3925ca6311ad0d4c830f0c33143a9ba61b5fe03d8936d94872c1f
3
+ metadata.gz: df4ff1283f15f443043bf344a44b33e5604e270fa839a90ad5bd33539745e706
4
+ data.tar.gz: 64287210b74b507c711d9910cd9945ffaee340bca368223f2433e1835907f466
5
5
  SHA512:
6
- metadata.gz: 3718763554cb07b81e96287e95e63e3528a921d2f1b0ca55e9499e21d10e58397fc0da84d7aa88d5bfbb9bfe14fc707457e2cd995bec9ccec71ff8ff377d622b
7
- data.tar.gz: 6ad31a659e2076a71e2d526d2bc4b345066b8e0ba9399a736672a34bec1ee487e6220dc001d86af1a44e9f9819492da2c2d55180678f0139c5b92804f038bc71
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: [:lock_version],
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: [:lock_version],
25
+ except: [
26
+ :lock_version,
27
+ :created_at,
28
+ :updated_at
29
+ ],
26
30
  include: [:roles]
27
31
  })
28
32
 
@@ -1,7 +1,7 @@
1
1
  require "schema_based_api/engine"
2
2
 
3
3
  require 'thecore_auth_commons'
4
- require 'active_hash_relation'
4
+ # require 'active_hash_relation'
5
5
  require 'rack/cors'
6
6
  require 'ransack'
7
7
  require 'json_web_token'
@@ -1,3 +1,3 @@
1
1
  module SchemaBasedApi
2
- VERSION = '2.1.16'
2
+ VERSION = '2.1.17'
3
3
  end
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.16
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