Merge pull request #8415 from mfo/US/fix-safe-mailer-bis
correctif(safe_mailer): fix bug sur de la synthax
This commit is contained in:
commit
70bee0b829
2 changed files with 2 additions and 2 deletions
|
@ -12,7 +12,7 @@ class SafeMailer < ApplicationRecord
|
||||||
raise if SafeMailer.count == 1
|
raise if SafeMailer.count == 1
|
||||||
end
|
end
|
||||||
|
|
||||||
enum forced_delivery_method: Rails.application.config.action_mailer&.balancer_settings&.keys&.map(&:to_s) || []
|
enum forced_delivery_method: (Rails.application.config.action_mailer&.balancer_settings&.keys || []).to_h { |k| [k.to_sym, k.to_s] }
|
||||||
|
|
||||||
def self.forced_delivery_method
|
def self.forced_delivery_method
|
||||||
first&.forced_delivery_method
|
first&.forced_delivery_method
|
||||||
|
|
|
@ -71,7 +71,7 @@ Rails.application.routes.draw do
|
||||||
resources :outdated_procedures, only: [:index] do
|
resources :outdated_procedures, only: [:index] do
|
||||||
patch :bulk_update, on: :collection
|
patch :bulk_update, on: :collection
|
||||||
end
|
end
|
||||||
resources :safe_mailers, only: [:index, :edit, :update, :destroy, :new, :create]
|
resources :safe_mailers, only: [:index, :edit, :update, :destroy, :new, :create, :show]
|
||||||
|
|
||||||
post 'demandes/create_administrateur'
|
post 'demandes/create_administrateur'
|
||||||
post 'demandes/refuse_administrateur'
|
post 'demandes/refuse_administrateur'
|
||||||
|
|
Loading…
Add table
Reference in a new issue