Sha256: 13c7bf2e2b26abdb30eeae171d65e957d2154102e158afdf4c4e023194f5e065
Contents?: true
Size: 635 Bytes
Versions: 1
Compression:
Stored size: 635 Bytes
Contents
# Filters added to this controller apply to all controllers in the application. # Likewise, all the methods added will be available for all controllers. #require 'app/models/product' class ApplicationController < ActionController::Base helper :all # include all helpers, all the time def get_login_link render :partial => '/users/login_link' end 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 alias_method_chain :set_locale, :config end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
forgeos_commerce_front-1.9.0 | app/controllers/application_controller.rb |