Class: ApplicationController

Inherits:
ActionController::Base
  • Object
show all
Defined in:
app/controllers/application_controller.rb

Overview

require ‘app/models/product’

Instance Method Summary collapse

Instance Method Details



8
9
10
# File 'app/controllers/application_controller.rb', line 8

def 
  render :partial => '/users/login_link'
end

#set_locale_with_configObject



12
13
14
15
16
17
18
19
# File 'app/controllers/application_controller.rb', line 12

def set_locale_with_config
  if Forgeos::CONFIG[:multilang]
    set_locale_without_config
  elsif locale = Forgeos::CONFIG[:default_locale]
    I18n.locale = locale
    ActiveRecord::Base.locale = locale
  end
end