Guest User

Untitled

a guest
Mar 4th, 2018
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. class AwesomenessController < ApplicationController
  2. before_filter :authenticate
  3.  
  4. def index
  5. end
  6.  
  7. def show
  8. end
  9.  
  10. def sthsthsth
  11. end
  12.  
  13. private
  14.  
  15. def authenticate
  16. authenticate_or_request_with_http_basic do |username, password|
  17. username == 'admin' && password == 'awesome'
  18. end
  19. end
  20. end
Add Comment
Please, Sign In to add comment