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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 90756783416d3b90241706bca5ce0006ba5e8ec87a7b41cdda263b40fbf1baa1
|
4
|
+
data.tar.gz: cf13951e1fa1669b5afe2cb8cbcb1a636e78609e442e422794c19eb409316a07
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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.
|
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-
|
11
|
+
date: 2019-06-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|