effective_resources 1.2.6 → 1.2.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/helpers/effective_resources_helper.rb +2 -2
- data/lib/effective_resources/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: f5796766ca6ef1da75bc85df2b729de8fc3e02bf
|
4
|
+
data.tar.gz: afe319a2b8728d399fd1aec332efd81a3ec84d57
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8bc1b3ceecac8b739cfb4abb5709f874f242232686442e6d84b2304c5b3d13d93c8ac2ff9ab99e91c1bee24a89142a8fd5ae09429985fc744d14e4a32e2b1691
|
7
|
+
data.tar.gz: 4871a543d1b8776a17c88b40219b22a90213a5288918b1ae41d2e4c97bd3040a3ff0b61aad94e6e6c99f1da9bf8a92874bdfc823a9af3ee43289aa24cc8e3c97
|
@@ -6,7 +6,7 @@ module EffectiveResourcesHelper
|
|
6
6
|
actions = actions.select { |k, v| v[:default] != true } if options.delete(:defaults) == false
|
7
7
|
actions = permitted_resource_actions(form.object, actions)
|
8
8
|
|
9
|
-
submits = actions.map { |name, opts| form.save(name, opts.except(:action, :title, 'data-method'
|
9
|
+
submits = actions.map { |name, opts| form.save(name, opts.except(:action, :title, 'data-method') ) }.join.html_safe
|
10
10
|
|
11
11
|
form.submit('', options) do
|
12
12
|
(block_given? ? capture(&block) : ''.html_safe) + submits
|
@@ -18,7 +18,7 @@ module EffectiveResourcesHelper
|
|
18
18
|
actions = (controller.respond_to?(:effective_resource) ? controller.class : find_effective_resource).submits
|
19
19
|
actions = permitted_resource_actions(form.object, actions)
|
20
20
|
|
21
|
-
submits = actions.map { |name, opts| form.button(:submit, name, opts.except(:action, :title, 'data-method'
|
21
|
+
submits = actions.map { |name, opts| form.button(:submit, name, opts.except(:action, :title, 'data-method')) }
|
22
22
|
|
23
23
|
# I think this is a bug. I can't override default button class when passing my own class: variable. it merges them.
|
24
24
|
if (btn_class = SimpleForm.button_class).present?
|
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.2.
|
4
|
+
version: 1.2.8
|
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-03-
|
11
|
+
date: 2019-03-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|