Module: HasTokenable

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

Defined Under Namespace

Modules: ActiveRecordTie, Concern, FinderMethods, TableDefinition

Constant Summary collapse

VERSION =
"0.1.2"

Class Method Summary collapse

Class Method Details

.default_token_optionsObject



19
20
21
22
23
24
25
26
# File 'lib/has_tokenable.rb', line 19

def self.default_token_options
  @default_token_options ||= {
    :prefix             => nil, # if nil use first letter of class name
    :length             => 10,
    :param_name         => 'token',
    :method_random      => 'urlsafe_base64'
  }
end