eac_redmine_usability 0.3.4 → 0.3.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/eac_redmine_usability/undeletable.rb +3 -2
- data/lib/eac_redmine_usability/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 669d6b8f4e85f3aa46ce0e8a8518468799962027aa0058379e1d203e31a66ebe
|
4
|
+
data.tar.gz: ba0a458e25100066f28bd4443b648ee77ddf33ee202a296a23caf559f13c0490
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ce7b1a9cf01ffc89d3a4bd7d00356f1c353e2f4484e12eeaee45d628a7f756a65dba8ea848c9a3166c41f6a358ce4e61eb1ca3fd5f5f1f06ef44778bb07ad48f
|
7
|
+
data.tar.gz: e0130267312a9e320cefa492457f8e5036276f70d88460308786093b87e37b7f9fde6767d35ac7e8ce3555abb1e1de4bb0d2c53907db596439a41f98dcc29eb8
|
@@ -25,11 +25,12 @@ module EacRedmineUsability
|
|
25
25
|
|
26
26
|
module InstanceMethods
|
27
27
|
def block_destroy
|
28
|
-
return
|
28
|
+
return if ::EacRedmineUsability::Undeletable.allow_destroy
|
29
29
|
|
30
30
|
errors.add :base, 'Este registro não pode ser removido. Em vez disso tente associá-lo a ' \
|
31
31
|
'um status como "Rejeitado" ou "Depreciado".'
|
32
|
-
|
32
|
+
|
33
|
+
throw(:abort)
|
33
34
|
end
|
34
35
|
end
|
35
36
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: eac_redmine_usability
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Eduardo Henrique Bogoni
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-07-
|
11
|
+
date: 2022-07-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: eac_ruby_utils
|