Rails-8-API-Image-Processing / app /controllers /users /confirmations_controller.rb
denise-oneill-inbox-ru's picture
D8 staging from 92665ef4298ecff6735b080ff7901f2c19f719a7
5010ad7 verified
Raw History Blame Contribute Delete
421 Bytes
class Users::ConfirmationsController < Devise::ConfirmationsController
layout "devise"
before_action :set_background_image
skip_before_action :authenticate_user!, only: [ :new, :create, :show ]
before_action :set_locale
private
def set_locale
I18n.locale = params[:locale] || session[:locale] || I18n.default_locale
end
def set_background_image
@background_image = "confirmation.png"
end
end