aboutsummaryrefslogtreecommitdiffstats
path: root/app/controllers/invitations_controller.rb
blob: 97e5352e40c773d321e920455cfddee7931e94c1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
class InvitationsController < Devise::InvitationsController

  def update
    if this
      redirect_to organisation_path
    else
      super
    end
  end

  protected
  
  def invite_params
    params.require(:user).permit(:name, :email )
  end

  def update_resource_params
     params.require(:user).permit(:name, :email, :password, :password_confirmation, :invitation_token)
  end  
  
end