# frozen_string_literal: true
module Api
  class UserResource < JSONAPI::Resource
    include Pundit::Resource

    attributes :name, :email

    has_many :decks
    has_many :contributions
  end
end

# frozen_string_literal: true
module Api
  class UserResource < JSONAPI::Resource
    include Pundit::Resource

    attributes :name, :email, :password, :password_confirmation

    has_many :decks
    has_many :contributions
  end
end

Add password attributes to User resource
Add password attributes to User resource
