Sha256: 71d2d87f874e7a6704a24ab8335f24a8421d9b6227367059e004847441147893

Contents?: true

Size: 437 Bytes

Versions: 2

Compression:

Stored size: 437 Bytes

Contents

class FamilyGallery::BaseController < ActionController::Base
  layout "family_gallery/application"

  include AwesomeTranslations::ControllerTranslateFunctionality
  include FamilyGallery::BaseFamilyGalleryController
  include LightMobile::DynamicRenderer

  before_filter :set_locale

private

  def set_locale
    session[:locale] ||= I18n.default_locale

    if session[:locale]
      I18n.locale = session[:locale]
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
family_gallery-0.0.7 app/controllers/family_gallery/base_controller.rb
family_gallery-0.0.6 app/controllers/family_gallery/base_controller.rb