Class: Darjeelink::ApiToken
- Inherits:
-
ApplicationRecord
- Object
- ActiveRecord::Base
- ApplicationRecord
- Darjeelink::ApiToken
- Defined in:
- app/models/darjeelink/api_token.rb
Instance Method Summary collapse
Instance Method Details
#generate_token ⇒ Object
10 11 12 |
# File 'app/models/darjeelink/api_token.rb', line 10 def generate_token self.token = SecureRandom.uuid if token.blank? end |