Last active
December 23, 2015 07:09
-
-
Save jessenaiman/6598664 to your computer and use it in GitHub Desktop.
custom devise_invitable controller. Placed in controllers/user/invitation_controller
https://github.com/scambra/devise_invitable
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 Users::InvitationsController < Devise::InvitationsController | |
def update | |
if this | |
binding.pry | |
redirect_to root_path | |
else | |
binding.pry | |
super | |
end | |
end | |
def create | |
binding.pry | |
end | |
def edit | |
binding.pry | |
end | |
end |
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
OLP::Application.routes.draw do | |
devise_for :users, :controllers => { :invitations => 'users/invitations' } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment