Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class ApplicationController < ActionController::Base
- protect_from_forgery
- layout :determine_layout
- def determine_layout
- logger.debug "***Processing layout "
- if devise_controller?
- logger.debug "Selecting ADMIN layout."
- "admin"
- else
- logger.debug "Selecting other layout."
- @domain = Domain.find_by_domainName(request.domain)
- @domain.domainLayout
- end
- end
- end
Add Comment
Please, Sign In to add comment