Sha256: e69c45d83d071ea089144538d5f3c15e3141d4e723d589254abb41c8be15d3d2

Contents?: true

Size: 456 Bytes

Versions: 16

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::Concerns::Model

  validates :name, presence: true

  def valid_for_authentication?
    auth_available && super
  end

  def do_something
    'Nothing to see here!'
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
graphql_devise-0.18.0 spec/dummy/app/models/user.rb
graphql_devise-0.17.1 spec/dummy/app/models/user.rb
graphql_devise-0.17.0 spec/dummy/app/models/user.rb
graphql_devise-0.16.0 spec/dummy/app/models/user.rb
graphql_devise-0.15.0 spec/dummy/app/models/user.rb
graphql_devise-0.14.3 spec/dummy/app/models/user.rb
graphql_devise-0.14.2 spec/dummy/app/models/user.rb
graphql_devise-0.14.1 spec/dummy/app/models/user.rb
graphql_devise-0.14.0 spec/dummy/app/models/user.rb
graphql_devise-0.13.6 spec/dummy/app/models/user.rb
graphql_devise-0.13.5 spec/dummy/app/models/user.rb
graphql_devise-0.13.4 spec/dummy/app/models/user.rb
graphql_devise-0.13.3 spec/dummy/app/models/user.rb
graphql_devise-0.13.2 spec/dummy/app/models/user.rb
graphql_devise-0.13.1 spec/dummy/app/models/user.rb
graphql_devise-0.13.0 spec/dummy/app/models/user.rb