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: d458ba14cebf204d6eea9d9b16d831e64a974a9435fe45c9fc9e554074973461
4
- data.tar.gz: c2abe900f2fec8f00ffc78c1c849bd12f330f64c02c706acc95a784ca2117a74
3
+ metadata.gz: fcd34fcb1c9fd9106d0fe2534b6d94c5ada97ede7f23b53a0ea4fbc51300f6ac
4
+ data.tar.gz: a722dfd5902c76ee2690a4b3107d103def7cb8d423635675fd698aa2c7a13c58
5
5
  SHA512:
6
- metadata.gz: 321c82d515d3b7bfb1795110f3004c04075bed4e543c8c996cd5934ab60c3b3b6373c070cd87fbd9e08476c666e4f14929bdcc470b59aeae446a7b513f6dbc2a
7
- data.tar.gz: b7a50cd744a65dfcc61f76b4a126763eb409d9c6f20f217a1ccc829b38c52b561c4d18996d9ad9540df17301ee84f8df61311862780e1a18e66ecdb5f6188738
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('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])
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('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])
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
- respond_with @collection, location: after_destroy_many_location, notice: t('.success', count: @collection.count)
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
@@ -44,4 +44,7 @@ de:
44
44
  show_actions:
45
45
  back: "Zurück"
46
46
  delete: "Löschen"
47
- edit: "Bearbeiten"
47
+ edit: "Bearbeiten"
48
+ batch_actions_concern:
49
+ destroy_many:
50
+ success: "%{count} %{collection_name} wurden gelöscht."
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.43.pre
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-19 00:00:00.000000000 Z
11
+ date: 2020-06-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails