Sha256: 776a748f79e058a0a3d273bb5532ae0836b832cb96e7b5ff785dca26e6f09b44

Contents?: true

Size: 197 Bytes

Versions: 5

Compression:

Stored size: 197 Bytes

Contents

class FamilyGallery::LocalesController < FamilyGallery::BaseController
  def create
    I18n.locale = params[:locale]
    session[:locale] = I18n.locale

    render json: {success: true}
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
family_gallery-0.0.5 app/controllers/family_gallery/locales_controller.rb
family_gallery-0.0.4 app/controllers/family_gallery/locales_controller.rb
family_gallery-0.0.3 app/controllers/family_gallery/locales_controller.rb
family_gallery-0.0.2 app/controllers/family_gallery/locales_controller.rb
family_gallery-0.0.1 app/controllers/family_gallery/locales_controller.rb