Class: ApiToken

Inherits:
ActiveRecord::Base
  • Object
show all
Includes:
ActiveUUID::UUID
Defined in:
app/models/api_token.rb

Instance Method Summary collapse

Methods included from ActiveUUID::UUID

#fix_uuid_strings, included

Instance Method Details

#refreshObject



15
16
17
18
# File 'app/models/api_token.rb', line 15

def refresh
  self.token = generate_api_token
  save
end