Class: Marty::Token

Inherits:
Base show all
Defined in:
app/models/marty/token.rb

Instance Method Summary collapse

Methods inherited from Base

get_final_attrs, get_struct_attrs, make_hash, make_openstruct, mcfly_pt

Methods inherited from ActiveRecord::Base

joins, old_joins

Instance Method Details

#generate_new_tokenObject

@@validity_time = 1.day



9
10
11
# File 'app/models/marty/token.rb', line 9

def generate_new_token
  self.value = Token.generate_token_value
end