Guest User

Untitled

a guest
Oct 22nd, 2017
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. class ApplicationController < ActionController::Base
  2. protect_from_forgery with: :exception
  3.  
  4. # Insira esta linha
  5. before_action :authenticate_user!
  6. end
  7.  
  8. class HomeController < ApplicationController
  9. # Insira esta linha
  10. skip_before_action :authenticate_user!
  11.  
  12. def index
  13. end
  14. end
Add Comment
Please, Sign In to add comment