Class: Marty::ApiAuth
- Inherits:
-
Base
- Object
- ActiveRecord::Base
- Base
- Marty::ApiAuth
- 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
Class Method Details
.generate_key ⇒ Object
29 30 31 |
# File 'app/models/marty/api_auth.rb', line 29 def self.generate_key SecureRandom.hex(KEY_SIZE) end |