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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ef53f5f87605f6af004c3d5638dbbaa32b7815b6ea08a7c6eca2047270fe6366
4
- data.tar.gz: 18793d76896047efe62ed4280ce49552308aa1ac568dfb6cada96f9eee399a40
3
+ metadata.gz: 669d6b8f4e85f3aa46ce0e8a8518468799962027aa0058379e1d203e31a66ebe
4
+ data.tar.gz: ba0a458e25100066f28bd4443b648ee77ddf33ee202a296a23caf559f13c0490
5
5
  SHA512:
6
- metadata.gz: b78956dc9c64c235e337edffa28bae64237589c5fcb84dbecd62d9e8251c9c3f4688d67c08773877b08b030fa9b52a25da28db5f4995e049763b27683428856d
7
- data.tar.gz: c3312d614d22519945873a54c2b2cf6f414333eb6f6b7bde8bc14c8c488444c01f6b936531c6431c1b0a221827605f4d788ac99eb9068a41d2dfa83069ac982c
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 true if ::EacRedmineUsability::Undeletable.allow_destroy
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
- false
32
+
33
+ throw(:abort)
33
34
  end
34
35
  end
35
36
  end
@@ -3,7 +3,7 @@
3
3
  module EacRedmineUsability
4
4
  SLUG = 'eac_redmine_usability'
5
5
  NAME = 'E.A.C.\'s Redmine Usability'
6
- VERSION = '0.3.4'
6
+ VERSION = '0.3.5'
7
7
  AUTHOR = 'Eduardo Henrique Bogoni'
8
8
  SUMMARY = ''
9
9
  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
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-07 00:00:00.000000000 Z
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