strong_resources 0.6.2 → 0.6.3
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: 6fa1858d3151a0ccc3873ce7614ad1c739bd1934
|
4
|
+
data.tar.gz: ae7a5549f4996d14f1d568f05484d87b4b19f208
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ff142dcd36ffadd091f4f44d86a4592660435e9a5953fa8227e812bf54736059f84f310f1e4097226c3fbdff2a0690132ed321bc3ec907511b78dfe30ee661ef
|
7
|
+
data.tar.gz: cfba12fff9d98c201c1c16e518335a8428203ba7d4bf597e51e794675f829e6fcb4b1575ba5c107ab3cb7a14f0ff3f550dd78de695c7a19823a4f8d3db31baa1
|
@@ -24,6 +24,7 @@ module StrongResources
|
|
24
24
|
strong_param :string, swagger: :string, type: ActionController::Parameters.string
|
25
25
|
strong_param :integer, swagger: :integer, type: ActionController::Parameters.integer
|
26
26
|
strong_param :boolean, swagger: :boolean, type: ActionController::Parameters.boolean
|
27
|
+
strong_param :number, swagger: :number, type: ActionController::Parameters.decimal
|
27
28
|
end
|
28
29
|
end
|
29
30
|
end
|
@@ -10,7 +10,7 @@ module StrongResources
|
|
10
10
|
attr_reader :name, :customized_actions, :jsonapi_type
|
11
11
|
|
12
12
|
def self.from(name, opts = {}, &blk)
|
13
|
-
config = StrongResources.
|
13
|
+
config = StrongResources.find(name)
|
14
14
|
resource = new(name)
|
15
15
|
resource.instance_eval(&config[:base])
|
16
16
|
resource.instance_eval(&blk) if blk
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: strong_resources
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.3
|
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: 2018-01-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jsonapi_compliable
|
@@ -195,7 +195,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
195
195
|
version: '0'
|
196
196
|
requirements: []
|
197
197
|
rubyforge_project:
|
198
|
-
rubygems_version: 2.
|
198
|
+
rubygems_version: 2.5.1
|
199
199
|
signing_key:
|
200
200
|
specification_version: 4
|
201
201
|
summary: Auto-generate swagger docs and strong params
|