Sha256: 9c9e9008dd59bda76319cf43e31e8e63f8110d18c83b771ff558410b7b65016c

Contents?: true

Size: 277 Bytes

Versions: 16

Compression:

Stored size: 277 Bytes

Contents

class FreeInvitationsController < Devise::InvitationsController
  protected
  def authenticate_inviter!
  # everyone can invite
  end
  def current_inviter
    current_admin || current_user
  end
  def after_invite_path_for(resource)
    resource ? super : root_path
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
devise_invitable-2.0.0 test/rails_app/app/controllers/free_invitations_controller.rb
devise_invitable-1.7.5 test/rails_app/app/controllers/free_invitations_controller.rb
devise_invitable-1.7.4 test/rails_app/app/controllers/free_invitations_controller.rb
devise_invitable-1.7.3 test/rails_app/app/controllers/free_invitations_controller.rb
devise_invitable-1.7.2 test/rails_app/app/controllers/free_invitations_controller.rb
devise_invitable-1.7.1 test/rails_app/app/controllers/free_invitations_controller.rb
devise_invitable-1.7.0 test/rails_app/app/controllers/free_invitations_controller.rb
devise_invitable-1.6.1 test/rails_app/app/controllers/free_invitations_controller.rb
devise_invitable-1.6.0 test/rails_app/app/controllers/free_invitations_controller.rb
devise_invitable-1.5.5 test/rails_app/app/controllers/free_invitations_controller.rb
devise_invitable-1.5.3 test/rails_app/app/controllers/free_invitations_controller.rb
devise_invitable-1.5.2 test/rails_app/app/controllers/free_invitations_controller.rb
devise_invitable-1.5.1 test/rails_app/app/controllers/free_invitations_controller.rb
devise_invitable-1.5.0 test/rails_app/app/controllers/free_invitations_controller.rb
devise_invitable-1.4.2 test/rails_app/app/controllers/free_invitations_controller.rb
devise_invitable-1.4.1 test/rails_app/app/controllers/free_invitations_controller.rb