Sha256: 38389ecc42e44c3da96063d93b5b49b161553d57fde96a1eddc9cfe0ef3da2b8

Contents?: true

Size: 456 Bytes

Versions: 9

Compression:

Stored size: 456 Bytes

Contents

# frozen_string_literal: true

class User < ApplicationRecord
  devise :database_authenticatable,
         :registerable,
         :recoverable,
         :rememberable,
         :trackable,
         :lockable,
         :validatable,
         :confirmable

  include GraphqlDevise::Authenticatable

  validates :name, presence: true

  def valid_for_authentication?
    auth_available && super
  end

  def do_something
    'Nothing to see here!'
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
graphql_devise-1.4.0 spec/dummy/app/models/user.rb
graphql_devise-1.3.0 spec/dummy/app/models/user.rb
graphql_devise-1.2.0 spec/dummy/app/models/user.rb
graphql_devise-1.1.1 spec/dummy/app/models/user.rb
graphql_devise-1.1.0 spec/dummy/app/models/user.rb
graphql_devise-1.0.1 spec/dummy/app/models/user.rb
graphql_devise-1.0.0 spec/dummy/app/models/user.rb
graphql_devise-0.18.2 spec/dummy/app/models/user.rb
graphql_devise-0.18.1 spec/dummy/app/models/user.rb