Rimuove link al portale Stripe in area cliente, aggiunge flusso admin per PDF fattura e email, blocca checkout senza dati di fatturazione, allinea prezzi a €4,90/€39,90 e €9,90/€69,90, locale italiano e documentazione deploy. Co-authored-by: Cursor <cursoragent@cursor.com>
10 lines
342 B
Ruby
10 lines
342 B
Ruby
module ApplicationHelper
|
|
# Data/ora nel fuso dell'app (Europe/Rome) e nella lingua del sito.
|
|
def l_local(date_or_time, format: :long)
|
|
return nil if date_or_time.blank?
|
|
|
|
value = date_or_time.respond_to?(:in_time_zone) ? date_or_time.in_time_zone : date_or_time
|
|
I18n.with_locale(:it) { I18n.l(value, format: format) }
|
|
end
|
|
end
|