module Rack::DevMark::I18nHelper
Public Class Methods
included(base)
click to toggle source
# File lib/rack/dev-mark/i18n_helper.rb, line 6 def self.included(base) class << base def env_with_i18n s = env_without_i18n ::I18n.translate(s, scope: 'rack_dev_mark', default: s) end alias_method :env_without_i18n, :env alias_method :env, :env_with_i18n end end