moves Residence model to Verification namespace
This commit is contained in:
@@ -4,11 +4,11 @@ class Verification::ResidenceController < ApplicationController
|
||||
skip_authorization_check
|
||||
|
||||
def new
|
||||
@residence = Residence.new
|
||||
@residence = Verification::Residence.new
|
||||
end
|
||||
|
||||
def create
|
||||
@residence = Residence.new(residence_params.merge(user: current_user))
|
||||
@residence = Verification::Residence.new(residence_params.merge(user: current_user))
|
||||
if @residence.save
|
||||
redirect_to verified_user_path, notice: t('verification.residence.create.flash.success')
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user