Class: ApiToken
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- ApiToken
- Includes:
- ActiveUUID::UUID
- Defined in:
- app/models/api_token.rb
Instance Method Summary collapse
Methods included from ActiveUUID::UUID
Instance Method Details
#refresh ⇒ Object
15 16 17 18 |
# File 'app/models/api_token.rb', line 15 def refresh self.token = generate_api_token save end |