effective_resources 1.3.6 → 1.3.7

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: 00676e20bca2b28bf3ade5d56980806ab7bcb55b015681a74d8813f823f597d4
4
- data.tar.gz: 0e69b1862f3ed5f64a2327c077cd7aef520c47ca7e7e6d6040b81b55d7777a76
3
+ metadata.gz: 90756783416d3b90241706bca5ce0006ba5e8ec87a7b41cdda263b40fbf1baa1
4
+ data.tar.gz: cf13951e1fa1669b5afe2cb8cbcb1a636e78609e442e422794c19eb409316a07
5
5
  SHA512:
6
- metadata.gz: 219fbc86a55a7251655d2d67d7f46cc603a4e496613c68e5cd276b56839b3bea25f65d7e816984c8c056ef54a338aa98a396eb7c8c455dfd48e9ecfb7196cfb0
7
- data.tar.gz: fb1ad2e01fdba48d1e401eff91f6226da6266a0d8717cc07d1d2ab7c632b281aef50d1d687e1edb07e50f4b5d8b7e1d0586c51d9abafaf9329f74812396cbe21
6
+ metadata.gz: 332d8cb1e698d4bf98c512d29e24a4b450885005ca2841c2a9a5b7d79ecc2f13ea87fb15c7795c9652f81c7a4957a8f9e4b2c0c1c8d5fe480d8881f11162c687
7
+ data.tar.gz: 91faa93b9883b72f35c95be9bd53984661872af48f356a8a2205775b997addfb8ae7504cda1a94c501ac3da50ba15f9ba6f1f777dcbe060094b488ab0e693838
@@ -79,7 +79,7 @@ module Effective
79
79
 
80
80
  actions[action.to_s.titleize] = case action
81
81
  when :archive
82
- { action: action, default: true, if: -> { resource.archived? }, class: 'btn btn-danger', 'data-method' => :post, 'data-confirm' => "Really #{action} @resource?"}
82
+ { action: action, default: true, if: -> { !resource.archived? }, class: 'btn btn-danger', 'data-method' => :post, 'data-confirm' => "Really #{action} @resource?"}
83
83
  when :unarchive
84
84
  { action: action, default: true, if: -> { resource.archived? }, 'data-method' => :post, 'data-confirm' => "Really #{action} @resource?" }
85
85
  else
@@ -1,3 +1,3 @@
1
1
  module EffectiveResources
2
- VERSION = '1.3.6'.freeze
2
+ VERSION = '1.3.7'.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.6
4
+ version: 1.3.7
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-20 00:00:00.000000000 Z
11
+ date: 2019-06-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails