app/controllers/admin/users/invitations_controller.rb
# this is called when accepting invitation
# should return an instance of resource class
this is called when accepting invitation
should return an instance of resource class
this is called when accepting invitation should return an instance of resource class
def accept_resource
    resource = resource_class.accept_invitation!(update_resource_params)
    resource
  end
def accept_resource resource = resource_class . accept_invitation! ( update_resource_params ) resource end
this is called when accepting invitation
should return an instance of resource class
this is called when accepting invitation should return an instance of resource class
# Report accepting invitation to analytics # Analytics.report(invite.accept, resource.id)