Class: Marty::ApiAuth

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

Defined Under Namespace

Classes: ApiAuthValidator

Constant Summary collapse

KEY_SIZE =
19

Class 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

Class Method Details

.generate_keyObject



29
30
31
# File 'app/models/marty/api_auth.rb', line 29

def self.generate_key
  SecureRandom.hex(KEY_SIZE)
end