Sha256: ed2835c7a64510553aff93f21d4391dfc1da3a6cbdc72241bb0b4d99b04f4f14

Contents?: true

Size: 383 Bytes

Versions: 2

Compression:

Stored size: 383 Bytes

Contents

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

  included do
  end
  
  def after_invite_path_for(resource)
    after_sign_in_path_for(resource)
  end
  
  def after_accept_path_for(resource)
    after_sign_in_path_for(resource)
  end
  
  protected
  def authenticate_inviter!
    send(:"authenticate_#{resource_name}!", :force => true)
  end
  
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
devise_invitable-1.6.0 lib/devise_invitable/controllers/helpers.rb
devise_invitable-1.5.5 lib/devise_invitable/controllers/helpers.rb