Sha256: 2040a9b3fe17a424628adfe4c3aee1b7672f38946d5dc49b711dfe2cc22c763e
Contents?: true
Size: 364 Bytes
Versions: 2
Compression:
Stored size: 364 Bytes
Contents
# Custom your own identifier for your model My model does not use `email` as its `identifier`, how to make AuthRails works with my model? Tell AuthRails what it is. ```rb # frozen_string_literal: true Rails.application.config.to_prepare do AuthRails.configure do |config| config.resource_class = User config.identifier_name = :username end end ```
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
auth_rails-1.1.2 | docs/src/customization/custom-identifier.md |
auth_rails-1.1.1 | docs/src/customization/custom-identifier.md |