Class: ApplicationController
- Inherits:
-
ActionController::Base
- Object
- ActionController::Base
- ApplicationController
- Defined in:
- app/controllers/application_controller.rb
Overview
require ‘app/models/product’
Direct Known Subclasses
AddressesController, CartController, NewslettersController, OrdersController, PersonSessionsController, UsersController
Instance Method Summary collapse
Instance Method Details
#get_login_link ⇒ Object
8 9 10 |
# File 'app/controllers/application_controller.rb', line 8 def get_login_link render :partial => '/users/login_link' end |
#set_locale_with_config ⇒ Object
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 |