app/controllers/invitations_controller.rb
def invite_resource
    ## skip sending emails on invite
    resource_class.invite!(invite_params, current_inviter) do |u|
      u.skip_invitation = false
    end
  end
# this is called when creating invitation
# should return an instance of resource class
this is called when creating invitation
should return an instance of resource class
this is called when creating invitation should return an instance of resource class
def invite_resource
    resource_class.invite!(invite_params, current_inviter) do |u|
      u.skip_invitation = false
    end
  end
def invite_resource resource_class . invite! ( invite_params , current_inviter ) do | u | u . skip_invitation = false end end
this is called when creating invitation
should return an instance of resource class
this is called when creating invitation should return an instance of resource class
## skip sending emails on invite