Sha256: 1f2563cb2127e82780fe0bbfa3198ec0d9e0cad5b7ca04fc7ff9531ad3bb35df

Contents?: true

Size: 474 Bytes

Versions: 4

Compression:

Stored size: 474 Bytes

Contents

::CurrentUser.setup do |config|

  # Setup an authentication key.
  # If you want to have a custom key, it might look like:
  # config.authentication_key = '4242424242424242'
  config.authentication_key = ::CurrentUser.read_authentication_key

  # Setup how users might be distinguished via UI.
  # It might be a symbol, a string or a lambda.
  # For the last case it might be:
  # config.identifier = -> { |u| "User with email #{u.email}" }
  config.identifier = :email
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
current_user-0.2.1 test/dummy/config/initializers/current_user.rb
current_user-0.2.0 test/dummy/config/initializers/current_user.rb
current_user-0.1.0 test/dummy/config/initializers/current_user.rb
current_user-0.0.1 test/dummy/config/initializers/current_user.rb