Sha256: 52e609e57f19e4149401cf2bce53d3519a71f92cf2c120fe73528a1f0152b5f1

Contents?: true

Size: 479 Bytes

Versions: 4

Compression:

Stored size: 479 Bytes

Contents

module DeviseInvitable::Controllers::Helpers
  extend ActiveSupport::Concern

  included do
  end

  def after_invite_path_for(inviter, invitee = nil)
    signed_in_root_path(inviter)
  end

  def after_accept_path_for(resource)
    signed_in_root_path(resource)
  end

  def invalid_token_path_for(resource_name)
    after_sign_out_path_for(resource_name)
  end

  protected

    def authenticate_inviter!
      send(:"authenticate_#{resource_name}!", force: true)
    end
end

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
blacklight-spotlight-3.6.0.beta8 vendor/bundle/ruby/3.2.0/gems/devise_invitable-2.0.9/lib/devise_invitable/controllers/helpers.rb
devise_invitable-2.0.9 lib/devise_invitable/controllers/helpers.rb
devise_invitable-2.0.8 lib/devise_invitable/controllers/helpers.rb
devise_invitable-2.0.7 lib/devise_invitable/controllers/helpers.rb