app/models/skydrive/account.rb in lti_skydrive-1.0.4 vs app/models/skydrive/account.rb in lti_skydrive-1.0.5
- old
+ new
@@ -1,10 +1,9 @@
module Skydrive
class Account < ActiveRecord::Base
validates :key, presence: true, uniqueness: true
validates :secret, presence: true
- belongs_to :admin, class_name: "User"
has_many :users
def self.new_key
Account.create(key: SecureRandom.uuid, secret: SecureRandom.hex)
end
\ No newline at end of file