Sha256: 1d57b7dc895e48cfc93e5c61c0276a78ab47ac38d748eb9faa3333328561abb0

Contents?: true

Size: 446 Bytes

Versions: 21

Compression:

Stored size: 446 Bytes

Contents

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

  included do
    hide_action :after_invite_path_for, :after_accept_path_for
  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

21 entries across 21 versions & 1 rubygems

Version Path
devise_invitable-1.5.3 lib/devise_invitable/controllers/helpers.rb
devise_invitable-1.5.2 lib/devise_invitable/controllers/helpers.rb
devise_invitable-1.5.1 lib/devise_invitable/controllers/helpers.rb
devise_invitable-1.5.0 lib/devise_invitable/controllers/helpers.rb
devise_invitable-1.4.2 lib/devise_invitable/controllers/helpers.rb
devise_invitable-1.4.1 lib/devise_invitable/controllers/helpers.rb
devise_invitable-1.4.0 lib/devise_invitable/controllers/helpers.rb
devise_invitable-1.3.6 lib/devise_invitable/controllers/helpers.rb
devise_invitable-1.3.5 lib/devise_invitable/controllers/helpers.rb
devise_invitable-1.3.4 lib/devise_invitable/controllers/helpers.rb
devise_invitable-1.3.3 lib/devise_invitable/controllers/helpers.rb
devise_invitable-1.3.2 lib/devise_invitable/controllers/helpers.rb
devise_invitable-1.3.1 lib/devise_invitable/controllers/helpers.rb
devise_invitable-1.3.0 lib/devise_invitable/controllers/helpers.rb
devise_invitable-1.2.1 lib/devise_invitable/controllers/helpers.rb
devise_invitable-1.1.8 lib/devise_invitable/controllers/helpers.rb
devise_invitable-1.1.7 lib/devise_invitable/controllers/helpers.rb
devise_invitable-1.1.6 lib/devise_invitable/controllers/helpers.rb
devise_invitable-1.1.5 lib/devise_invitable/controllers/helpers.rb
devise_invitable-1.1.4 lib/devise_invitable/controllers/helpers.rb