Sha256: 63b9e6def39bc710f275f8cdc26874b8e9fd6363615c60cce15fffd3ace46c20

Contents?: true

Size: 237 Bytes

Versions: 17

Compression:

Stored size: 237 Bytes

Contents

class DemoUserController < ApplicationController
  before_action :authenticate_user!

  def members_only
    render json: {
      data: {
        message: "Welcome #{@user.name}",
        user: @user
      }
    }, status: 200
  end
end

Version data entries

17 entries across 17 versions & 2 rubygems

Version Path
xing_backend_token_auth-0.1.32 test/dummy/app/controllers/demo_user_controller.rb
xing_backend_token_auth-0.1.31 test/dummy/app/controllers/demo_user_controller.rb
devise_token_auth-0.1.30.beta3 test/dummy/app/controllers/demo_user_controller.rb
devise_token_auth-0.1.30.beta2 test/dummy/app/controllers/demo_user_controller.rb
devise_token_auth-0.1.30.beta1 test/dummy/app/controllers/demo_user_controller.rb
devise_token_auth-0.1.29 test/dummy/app/controllers/demo_user_controller.rb
devise_token_auth-0.1.29.beta7 test/dummy/app/controllers/demo_user_controller.rb
devise_token_auth-0.1.29.beta6 test/dummy/app/controllers/demo_user_controller.rb
devise_token_auth-0.1.29.beta5 test/dummy/app/controllers/demo_user_controller.rb
devise_token_auth-0.1.29.beta4 test/dummy/app/controllers/demo_user_controller.rb
devise_token_auth-0.1.29.beta3 test/dummy/app/controllers/demo_user_controller.rb
devise_token_auth-0.1.29.beta2 test/dummy/app/controllers/demo_user_controller.rb
devise_token_auth-0.1.29.beta1 test/dummy/app/controllers/demo_user_controller.rb
devise_token_auth-0.1.28 test/dummy/app/controllers/demo_user_controller.rb
devise_token_auth-0.1.28.beta9 test/dummy/app/controllers/demo_user_controller.rb
devise_token_auth-0.1.28.beta8 test/dummy/app/controllers/demo_user_controller.rb
devise_token_auth-0.1.28.beta7 test/dummy/app/controllers/demo_user_controller.rb