effective_resources 1.1.4 → 1.1.5
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: 79d6e7dcb8c5527a92e5e8b131432dfb4e2bcbb6
|
4
|
+
data.tar.gz: be478e58a93c9f09e5ff4f2e55acde4484432bb9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ad432b0b6fc28abcf3161e070ccb73f3bb92eb6664c2944b085445a8100dca94a3955e984a7c606a7ba1ece92023e5706738f9ed62b327755c900daf646e62ed
|
7
|
+
data.tar.gz: 507cf9801a43e9b3c78a580f540841777fb9c74ff9ba70d345fb7f884678f6e5dfa6da0020a9a13878971dd3964aca7f52f9873a72d8765e2f5409bc9308d447
|
@@ -0,0 +1,5 @@
|
|
1
|
+
<% resource = (@_effective_resource || Effective::Resource.new(controller_path)) %>
|
2
|
+
<% @resource = instance_variable_get('@' + resource.name) if resource.name %>
|
3
|
+
|
4
|
+
EffectiveForm.remote_form_payload = "<%= j render(@resource) %>";
|
5
|
+
EffectiveForm.remote_form_flash = <%= raw flash.to_json %>;
|
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.1.
|
4
|
+
version: 1.1.5
|
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-01-
|
11
|
+
date: 2019-01-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -78,6 +78,7 @@ files:
|
|
78
78
|
- app/views/application/new.html.haml
|
79
79
|
- app/views/application/new.js.erb
|
80
80
|
- app/views/application/show.html.haml
|
81
|
+
- app/views/application/show.js.erb
|
81
82
|
- app/views/application/update.js.erb
|
82
83
|
- app/views/effective/resource/_actions.html.haml
|
83
84
|
- app/views/effective/resource/_actions_dropleft.html.haml
|