moves letter verification to letter controller

This commit is contained in:
rgarcia
2015-10-19 19:37:16 +02:00
parent fd8684e713
commit a6fd1fb489
3 changed files with 31 additions and 4 deletions

View File

@@ -1,11 +1,13 @@
class Verification::LetterController < ApplicationController
before_action :authenticate_user!
before_action :authenticate_user!, except: :edit
before_action :verify_resident!
before_action :verify_phone!
before_action :verify_verified!
before_action :verify_lock
skip_authorization_check
layout :pages, only: :edit
def new
@letter = Verification::Letter.new(user: current_user)
end
@@ -20,7 +22,7 @@ class Verification::LetterController < ApplicationController
end
def edit
@letter = Verification::Letter.new(user: current_user)
@letter = Verification::Letter.new
end
def update