jsonapi_suite 0.2.1 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/jsonapi_suite/controller_mixin.rb +5 -1
- data/lib/jsonapi_suite/version.rb +1 -1
- 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: 8dc13ae4e08232332709201174753213a5fd5da4
|
4
|
+
data.tar.gz: 0118b818c4508dd1370eb11441b21810feffb419
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d84e406cb41839890932b844713f42d5f2306e0c5e2e3347268f58338532fc9d5c8df6c35057f59e8462156c2cf923ed4f4b09d6687315b43317e67bdee696d9
|
7
|
+
data.tar.gz: be7458647ebcca4146b54b499586a3d7fc91c943194ce03dfd23795eb4c06ade0f37d7559ea5007664b96e510f677da74e99849de3c83cdfd438441ef0981860
|
@@ -2,7 +2,11 @@ module JsonapiSuite
|
|
2
2
|
module ControllerMixin
|
3
3
|
def self.included(klass)
|
4
4
|
klass.class_eval do
|
5
|
-
|
5
|
+
if defined?(Rails)
|
6
|
+
include JsonapiCompliable::Rails
|
7
|
+
else
|
8
|
+
include JsonapiCompliable::Base
|
9
|
+
end
|
6
10
|
include JsonapiErrorable
|
7
11
|
include StrongResources::Controller::Mixin
|
8
12
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jsonapi_suite
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Lee Richmond
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-02-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|