Skip to content

Instantly share code, notes, and snippets.

@jessenaiman
Last active December 23, 2015 07:09
Show Gist options
  • Save jessenaiman/6598664 to your computer and use it in GitHub Desktop.
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
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
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