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: 7db6cf744147d8805cfaedf710419966bf378bd53d988c3609f4fa6eaeb8eaac
4
- data.tar.gz: 67141029520d50319dd2404bbefd388510547bf079c5e971af1f6fbaa097281a
3
+ metadata.gz: d7d0561a1b60dbeb0818d5f475f859e1e482624c9006fe9655330b516f98c6cb
4
+ data.tar.gz: 721366e5cec1195d508f117a0cb7b4239720a698a94c338feb15f5f29bcf2936
5
5
  SHA512:
6
- metadata.gz: a5058c402eb1f49f474b2057e712cc12952e0935d43c57f9a089f0d9a08b59d9d79b6650d103905aa74d904300b9d8ce70fddbef0968d5ce48098239f79d1af6
7
- data.tar.gz: b5047f9032d806d3a7c0732b30b3ced749c2e32088e6d9e80c7002b45fbf0b2c220667688aece422b857cea996964bb754ae33e56753ae19ef4f9c9ffea07bcd
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
- # Assign any passed params
23
- to_assign = if params[:_datatable_id].present?
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
@@ -1,3 +1,3 @@
1
1
  module EffectiveResources
2
- VERSION = '1.3.3'.freeze
2
+ VERSION = '1.3.4'.freeze
3
3
  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.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-06 00:00:00.000000000 Z
11
+ date: 2019-06-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails