moves Residence model to Verification namespace

This commit is contained in:
Juanjo Bazán
2015-08-29 12:38:07 +02:00
parent e33723635b
commit e8463d1372
5 changed files with 10 additions and 10 deletions

View File

@@ -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