class Blacksheep::Decorators::Localizer

@class Blacksheep::Decorators::Localizer

Public Instance Methods

call(params, current_user: nil, **options) click to toggle source
Calls superclass method
# File lib/blacksheep/decorators/localizer.rb, line 7
def call(params, current_user: nil, **options)
  if (locale = params[:_locale])
    I18n.with_locale(locale) do
      super
    end
  else
    super
  end
end
perform(params, current_user: nil, **options) click to toggle source
Calls superclass method
# File lib/blacksheep/decorators/localizer.rb, line 17
def perform(params, current_user: nil, **options)

  if (locale = params[:_locale])
    I18n.with_locale(locale) do
      super
    end
  else
    super
  end
end