Sha256: c80bd4862c2dda3fda77a8e8001a0917d46c9f1899b2db7d92b8550a41f69990

Contents?: true

Size: 425 Bytes

Versions: 23

Compression:

Stored size: 425 Bytes

Contents

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

23 entries across 23 versions & 1 rubygems

Version Path
graphql_devise-0.12.3 spec/dummy/app/models/user.rb
graphql_devise-0.12.2 spec/dummy/app/models/user.rb
graphql_devise-0.12.1 spec/dummy/app/models/user.rb
graphql_devise-0.12.0 spec/dummy/app/models/user.rb
graphql_devise-0.11.4 spec/dummy/app/models/user.rb
graphql_devise-0.11.3 spec/dummy/app/models/user.rb
graphql_devise-0.11.2 spec/dummy/app/models/user.rb
graphql_devise-0.11.1 spec/dummy/app/models/user.rb
graphql_devise-0.11.0 spec/dummy/app/models/user.rb
graphql_devise-0.10.1 spec/dummy/app/models/user.rb
graphql_devise-0.10.0 spec/dummy/app/models/user.rb
graphql_devise-0.9.2 spec/dummy/app/models/user.rb
graphql_devise-0.9.1 spec/dummy/app/models/user.rb
graphql_devise-0.9.0 spec/dummy/app/models/user.rb
graphql_devise-0.8.1 spec/dummy/app/models/user.rb
graphql_devise-0.8.0 spec/dummy/app/models/user.rb
graphql_devise-0.7.0 spec/dummy/app/models/user.rb
graphql_devise-0.6.0 spec/dummy/app/models/user.rb
graphql_devise-0.5.0 spec/dummy/app/models/user.rb
graphql_devise-0.4.1 spec/dummy/app/models/user.rb