Sha256: c174cd2f86e68cc017891c0d3f3c4f6b96f0f2fe344ed11ed19b9c026064e3eb

Contents?: true

Size: 446 Bytes

Versions: 1

Compression:

Stored size: 446 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].present?
      I18n.locale = session[:locale]
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
family_gallery-0.0.8 app/controllers/family_gallery/base_controller.rb