Sha256: 0193e151baecfcb114e53ed01de180a5a98363c2fbf7273924aecf5a628296a8

Contents?: true

Size: 385 Bytes

Versions: 6

Compression:

Stored size: 385 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

  protected

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

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
devise_invitable-2.0.6 lib/devise_invitable/controllers/helpers.rb
devise_invitable-2.0.5 lib/devise_invitable/controllers/helpers.rb
devise_invitable-2.0.4 lib/devise_invitable/controllers/helpers.rb
devise_invitable-2.0.3 lib/devise_invitable/controllers/helpers.rb
devise_invitable-2.0.2 lib/devise_invitable/controllers/helpers.rb
devise_invitable-2.0.1 lib/devise_invitable/controllers/helpers.rb