OfficeMomsandDads/scheduler

View on GitHub
app/controllers/invitations_controller.rb

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
# frozen_string_literal: true

class InvitationsController < Devise::InvitationsController
  def new
    self.resource = resource_class.new
    authorize User
    render :new
  end

  def create
    resource = resource_class.new(invite_params)
    authorize resource
    super
  end
end