Created
August 12, 2014 11:47
-
-
Save aep/70817319d72299a7809b 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
module Portal::V2 | |
class OnboardingController < PortalController | |
skip_filter :enforce_user_session!, only: [:index, :debug] | |
def index | |
# we never get here | |
end | |
end | |
end |
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
module Portal::V2 | |
class PortalController < ApplicationController | |
before_filter :enforce_user_session! | |
skip_before_action :verify_authenticity_token | |
private | |
def enforce_user_session! | |
redirect_to "http://google.com" | |
return false | |
# we see this | |
end | |
end | |
end | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment