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
Constants inherited from ActiveRecord::Base
ActiveRecord::Base::COUNT_SIG, ActiveRecord::Base::DISTINCT_SIG, ActiveRecord::Base::FIND_BY_SIG, ActiveRecord::Base::FIRST_SIG, ActiveRecord::Base::GROUP_SIG, ActiveRecord::Base::JOINS_SIG, ActiveRecord::Base::LAST_SIG, ActiveRecord::Base::LIMIT_SIG, ActiveRecord::Base::MCFLY_PT_SIG, ActiveRecord::Base::NOT_SIG, ActiveRecord::Base::ORDER_SIG, ActiveRecord::Base::PLUCK_SIG, ActiveRecord::Base::SELECT_SIG, ActiveRecord::Base::WHERE_SIG
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
30 31 32 |
# File 'app/models/marty/api_auth.rb', line 30 def self.generate_key SecureRandom.hex(KEY_SIZE) end |