Module: Locomotive::Concerns::LocaleHelpersController::ClassMethods

Defined in:
app/controllers/locomotive/concerns/locale_helpers_controller.rb

Instance Method Summary collapse

Instance Method Details

#localized(enable_it = true) ⇒ Object


55
56
57
58
59
# File 'app/controllers/locomotive/concerns/locale_helpers_controller.rb', line 55

def localized(enable_it = true)
  before_action do |c|
    c.instance_variable_set(:@locomotive_localized, enable_it)
  end
end