Sha256: 0745c4af7f53173822ba2897ba9856e81d54b73797ff213b76273238c889fb13

Contents?: true

Size: 460 Bytes

Versions: 3

Compression:

Stored size: 460 Bytes

Contents

::CurrentUser.setup do |config|

  # If you want to have a custom authentication 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 = lambda { |u| "User with email #{u.email}" }
  config.identifier = :email
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
current_user-0.2.1 lib/generators/templates/current_user.rb
current_user-0.2.0 lib/generators/templates/current_user.rb
current_user-0.1.0 lib/generators/templates/current_user.rb