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.28.beta7 test/dummy/app/controllers/demo_group_controller.rb