diff --git a/lib/active_scaffold/extensions/localize.rb b/lib/active_scaffold/extensions/localize.rb index 8daa70c185..d4e9b61ef7 100644 --- a/lib/active_scaffold/extensions/localize.rb +++ b/lib/active_scaffold/extensions/localize.rb @@ -3,7 +3,7 @@ def as_(key, options = {}) if key.present? scope = [:active_scaffold, *options.delete(:scope)] options = options.reverse_merge(:scope => scope, :default => key.is_a?(String) ? key : key.to_s.titleize) - text = I18n.translate(key.to_s, options).html_safe # rubocop:disable Rails/OutputSafety + text = I18n.translate(key.to_s, **options).html_safe # rubocop:disable Rails/OutputSafety # text = nil if text.include?('translation missing:') end text || key