Guest User

Untitled

a guest
Jun 20th, 2018
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. class ApplicationController < ActionController::Base
  2. protect_from_forgery
  3.  
  4. layout :determine_layout
  5.  
  6. def determine_layout
  7. logger.debug "***Processing layout "
  8. if devise_controller?
  9. logger.debug "Selecting ADMIN layout."
  10. "admin"
  11. else
  12. logger.debug "Selecting other layout."
  13. @domain = Domain.find_by_domainName(request.domain)
  14. @domain.domainLayout
  15. end
  16. end
  17.  
  18. end
Add Comment
Please, Sign In to add comment