Created
December 19, 2015 04:51
-
-
Save snelson/e1c763c3660071a0a641 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class ApplicationController < ActionController::Base | |
layout :determine_layout | |
private | |
def determine_layout | |
request.headers['X-PJAX'] ? false : "application" | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment