Module: Gaigo::ActionViewExtension

Extended by:
ActiveSupport::Concern
Includes:
Utilities
Defined in:
lib/gaigo/helpers/action_view_extension.rb

Instance Method Summary collapse

Methods included from Utilities

#check_country_code, #check_locale_code

Instance Method Details

#render_with_locale(locale, *args, &block) ⇒ Object



19
20
21
22
23
# File 'lib/gaigo/helpers/action_view_extension.rb', line 19

def render_with_locale(locale, *args, &block)
  I18n.with_locale locale do
    render(*args, &block)
  end
end