]> git.openstreetmap.org Git - rails.git/blobdiff - app/models/oauth_nonce.rb
Create an ApplicationRecord for models to inherit from
[rails.git] / app / models / oauth_nonce.rb
index 9d2773e8f346c5b8e6789c8a314020c7a39edd41..5f0920a96f1fd537456ff79ea0dd243a4883acda 100644 (file)
@@ -15,7 +15,7 @@
 
 # Simple store of nonces. The OAuth Spec requires that any given pair of nonce and timestamps are unique.
 # Thus you can use the same nonce with a different timestamp and viceversa.
-class OauthNonce < ActiveRecord::Base
+class OauthNonce < ApplicationRecord
   validates :timestamp, :presence => true
   validates :nonce, :presence => true, :uniqueness => { :scope => :timestamp }