Class: Skydrive::Account

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
app/models/skydrive/account.rb

Class Method Summary collapse

Class Method Details

.new_keyObject



8
9
10
# File 'app/models/skydrive/account.rb', line 8

def self.new_key
  Account.create(key: SecureRandom.uuid, secret: SecureRandom.hex)
end