Module: HasTokenId

Defined in:
lib/has_token_id.rb,
lib/has_token_id/concern.rb,
lib/has_token_id/version.rb,
lib/has_token_id/finder_methods.rb,
lib/has_token_id/table_definition.rb

Defined Under Namespace

Modules: ActiveRecordTie, Concern, FinderMethods, TableDefinition

Constant Summary collapse

VERSION =
"0.5.0"

Class Method Summary collapse

Class Method Details

.default_token_optionsObject



21
22
23
24
25
26
27
28
29
# File 'lib/has_token_id.rb', line 21

def self.default_token_options
  @default_token_options ||= {
    :prefix             => nil, # if nil use first letter of class name
    :length             => 24,
    :short_token_length => 8,
    :param_name         => 'token',
    :case_sensitive     => false
  }
end