effective_resources 1.3.3 → 1.3.4
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: d7d0561a1b60dbeb0818d5f475f859e1e482624c9006fe9655330b516f98c6cb
|
4
|
+
data.tar.gz: 721366e5cec1195d508f117a0cb7b4239720a698a94c338feb15f5f29bcf2936
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7005aee8a57de67b42837378285189dd3906d72dfb8db5342cc57882d9e64f428107e55962d991ceaa1d710183cf8c4daf053615978d98b2e3719c050a4a56b4
|
7
|
+
data.tar.gz: 3974eaf47339e51c3d3b473fb80ef53568b4e84d2aa83e45700b2a205ba9e0f20959c22664db512214b045bf1b0d17ce4ddcf6eb9f73d374fe4e829eb1fa6a5f
|
@@ -19,11 +19,8 @@ module Effective
|
|
19
19
|
|
20
20
|
self.resource ||= resource_scope.new
|
21
21
|
|
22
|
-
|
23
|
-
|
24
|
-
inline_datatable = EffectiveDatatables.find(params[:_datatable_id])
|
25
|
-
inline_datatable.view = view_context
|
26
|
-
inline_datatable.attributes
|
22
|
+
to_assign = if view_context.respond_to?(:inline_datatable?) && view_context.inline_datatable?
|
23
|
+
EffectiveDatatables.find(params[:_datatable_id], params[:_datatable_attributes]).attributes
|
27
24
|
elsif params.present?
|
28
25
|
params.to_unsafe_h.except(:controller, :action, :id, :duplicate_id)
|
29
26
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: effective_resources
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3.
|
4
|
+
version: 1.3.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Code and Effect
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-06-
|
11
|
+
date: 2019-06-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|