Skip to content

Instantly share code, notes, and snippets.

@aep
Created August 12, 2014 11:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aep/70817319d72299a7809b to your computer and use it in GitHub Desktop.
Save aep/70817319d72299a7809b to your computer and use it in GitHub Desktop.
module Portal::V2
class OnboardingController < PortalController
skip_filter :enforce_user_session!, only: [:index, :debug]
def index
# we never get here
end
end
end
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