Skip to content

Commit

Permalink
Improve handling, when no tenant_type is selected
Browse files Browse the repository at this point in the history
  • Loading branch information
Kagemaru committed Mar 9, 2023
1 parent 0530539 commit 53a4144
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/initializers/decidim_ocl_customization.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
Decidim.config[:devise_custom_scope] = lambda { |org, base = nil|
base ||= %i[decidim_ocl devise]

org_scope = (org.tenant_type || 'other').to_sym
org_scope = (org.tenant_type.presence || 'other').to_sym

# Ensure that the current tenant is using custom translations for the devise mails
base + [org_scope] if I18n.t(org_scope, scope: base, default: nil)
Expand Down

0 comments on commit 53a4144

Please sign in to comment.