demarches-normaliennes/app/controllers/users/siret_controller.rb

10 lines
286 B
Ruby
Raw Normal View History

2015-09-23 19:20:03 +02:00
class Users::SiretController < UsersController
def index
@siret = params[:siret] || current_user.siret
redirect_to(users_path(procedure_id: params['procedure_id'], siret: @siret))
rescue ActionController::UrlGenerationError
redirect_to(new_user_session_path)
end
end