rao-resources_controller 0.0.43.pre → 0.0.44.pre
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: fcd34fcb1c9fd9106d0fe2534b6d94c5ada97ede7f23b53a0ea4fbc51300f6ac
|
4
|
+
data.tar.gz: a722dfd5902c76ee2690a4b3107d103def7cb8d423635675fd698aa2c7a13c58
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c93d9671784c6e9a1ac8a3f428bf2db2fb8bdc2aab4fce48b8bbad2d9ca2a0e672f11aac7b2413249042bfd95b88dce71e1bd3198461fca3ee4e4ff92ac92982
|
7
|
+
data.tar.gz: ddbf8be123007bbb2151f358c1e3715f6140840d03e37e79bcf7e29dd20bdc7797a56fb99a567703cc4f45930de4af7888d9043fe96064c2d3f0dbbd211792e0
|
@@ -9,9 +9,9 @@ module Rao
|
|
9
9
|
|
10
10
|
def trigger_event
|
11
11
|
if @resource.aasm(permitted_params_for_trigger_event[:machine_name].to_sym).fire!(permitted_params_for_trigger_event[:event_name].to_sym)
|
12
|
-
flash[:notice] = t('
|
12
|
+
flash[:notice] = t('rao.resources_controller.aasm_concern.trigger_event.success', state: @resource.aasm(permitted_params_for_trigger_event[:machine_name].to_sym).current_state, event: permitted_params_for_trigger_event[:event_name])
|
13
13
|
else
|
14
|
-
flash[:notice] = t('
|
14
|
+
flash[:notice] = t('rao.resources_controller.aasm_concern.trigger_event.failure', state: @resource.aasm(permitted_params_for_trigger_event[:machine_name].to_sym).current_state, event: permitted_params_for_trigger_event[:event_name])
|
15
15
|
end
|
16
16
|
redirect_back(fallback_location: root_path)
|
17
17
|
end
|
@@ -9,9 +9,13 @@ module Rao
|
|
9
9
|
module ResourcesController::BatchActionsConcern
|
10
10
|
def destroy_many
|
11
11
|
@collection = load_collection_scope.where(id: params[:ids])
|
12
|
+
count = @collection.count
|
12
13
|
@collection.destroy_all
|
13
14
|
|
14
|
-
|
15
|
+
default_message = t('.success', inflections.merge(count: count))
|
16
|
+
respond_with @collection,
|
17
|
+
location: after_destroy_many_location,
|
18
|
+
notice: t('rao.resources_controller.batch_actions_concern.destroy_many.success', inflections.merge(count: count, default: default_message))
|
15
19
|
end
|
16
20
|
|
17
21
|
private
|
data/config/locales/de.yml
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rao-resources_controller
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.44.pre
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Roberto Vasquez Angel
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-06-
|
11
|
+
date: 2020-06-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|