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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a5581c1ca7e6f7a54decd9c6ea534aec3a9c61c4
4
- data.tar.gz: ef4bbf6529ccff4299b90645e081379ef4953619
3
+ metadata.gz: f5796766ca6ef1da75bc85df2b729de8fc3e02bf
4
+ data.tar.gz: afe319a2b8728d399fd1aec332efd81a3ec84d57
5
5
  SHA512:
6
- metadata.gz: a2d4d1a86fab8cfeb839226e621ac3c3be2b6818fb0d9d2e77e8da847e992ce44a46426b32c7f9c5b446f400152199446517ed122c13ca161d3b63c08befc3c5
7
- data.tar.gz: 2a4d94ed4a0dc9f5f49c7c4ca29d6b84dd5946510b3be812e7bfd0a1dbeb43015484bdf51e605fd6f521705021216adf01b21b50cab992d1a92fdd63cfb8a3c3
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', 'data-confirm')) }.join.html_safe
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', 'data-confirm')) }
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?
@@ -1,3 +1,3 @@
1
1
  module EffectiveResources
2
- VERSION = '1.2.6'.freeze
2
+ VERSION = '1.2.8'.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.2.6
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-13 00:00:00.000000000 Z
11
+ date: 2019-03-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails