Created
August 26, 2015 05:34
-
-
Save bnorton/c8ac332a542f2e98e823 to your computer and use it in GitHub Desktop.
Skip the default Rails session (when building an API)
This file contains 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 | |
before_action :skip_session | |
private | |
def skip_session | |
request.session_options[:skip] = true | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment