Sha256: 5ccb5db6021358800f7632109d86f0fabada5cb44cf2bfd0d39aa787debd904b

Contents?: true

Size: 318 Bytes

Versions: 61

Compression:

Stored size: 318 Bytes

Contents

class DemoGroupController < ApplicationController
  devise_token_auth_group :member, contains: [:user, :mang]
  before_action :authenticate_member!

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

Version data entries

61 entries across 61 versions & 4 rubygems

Version Path
devise_token_auth-0.1.43 test/dummy/app/controllers/demo_group_controller.rb
digix_devise_token_auth-0.1.44 test/dummy/app/controllers/demo_group_controller.rb
devise_token_auth-0.1.43.beta1 test/dummy/app/controllers/demo_group_controller.rb
devise_token_auth-0.1.42 test/dummy/app/controllers/demo_group_controller.rb
devise_token_auth-0.1.41 test/dummy/app/controllers/demo_group_controller.rb
devise_token_auth-0.1.40 test/dummy/app/controllers/demo_group_controller.rb
devise_token_auth-0.1.39 test/dummy/app/controllers/demo_group_controller.rb
devise_token_auth-0.1.38 test/dummy/app/controllers/demo_group_controller.rb
devise_token_auth-0.1.37 test/dummy/app/controllers/demo_group_controller.rb
xing_backend_token_auth-0.1.32 test/dummy/app/controllers/demo_group_controller.rb
devise_token_auth-0.1.37.beta4 test/dummy/app/controllers/demo_group_controller.rb
cm-devise_token_auth-0.1.30.1 test/dummy/app/controllers/demo_group_controller.rb
devise_token_auth-0.1.37.beta3 test/dummy/app/controllers/demo_group_controller.rb
devise_token_auth-0.1.37.beta2 test/dummy/app/controllers/demo_group_controller.rb
devise_token_auth-0.1.37.beta1 test/dummy/app/controllers/demo_group_controller.rb
devise_token_auth-0.1.36 test/dummy/app/controllers/demo_group_controller.rb
devise_token_auth-0.1.35 test/dummy/app/controllers/demo_group_controller.rb
devise_token_auth-0.1.34 test/dummy/app/controllers/demo_group_controller.rb
devise_token_auth-0.1.33 test/dummy/app/controllers/demo_group_controller.rb
devise_token_auth-0.1.32 test/dummy/app/controllers/demo_group_controller.rb