Sha256: bff3456b0af0341f4d932a6fd9b450016437e1877fd39ecf7c143eaf2d2043f0

Contents?: true

Size: 956 Bytes

Versions: 3

Compression:

Stored size: 956 Bytes

Contents

TokenMaster.config do |config|
  # Set up your configurations for each tokenable using the methods at the bottom of this file.
  # Examples:

  # 'config.add_tokenable_options :confirm, TokenMaster::Config::DEFAULT_VALUES' results in:

  # config.confirm_options = {
  #   token_lifetime: 14,
  #   required_parms: [],
  #   token_length: 20
  # }

  # 'config.add_tokenable_options :reset, token_lifetime: 1, required_params: [:password, :password_confirmation], token_length: 15' results in:

  # config.reset_options = {
  #   token_lifetime: 1,
  #   required_parms: [:password, :password_confirmation],
  #   token_length: 20
  # }

  # 'config.add_tokenable_options :foo, token_lifetime: 10, required_params: [:email, token_length: config.DEFAULT_VALUES[:token_length]' results in:

  # config.foo_options = {
  #   token_lifetime: 10,
  #   required_parms: [:email],
  #   token_length: 20
  # }

  #### METHODS FOR YOUR CONFIGURATION BELOW ###
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
token_master-0.1.2 lib/generators/token_master/templates/initializer.rb
token_master-0.1.0 lib/generators/token_master/templates/initializer.rb
token_master-0.0.1 lib/generators/token_master/templates/initializer.rb