Unverified Commit eb19c327 authored by Benjamin Neff's avatar Benjamin Neff
Browse files

Add ApplicationRecord

parent fe57bd88
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2,7 +2,7 @@
#   licensed under the Affero General Public License version 3 or later.  See
#   the COPYRIGHT file.

class AccountDeletion < ActiveRecord::Base
class AccountDeletion < ApplicationRecord
  include Diaspora::Federated::Base

  scope :uncompleted, -> { where('completed_at is null') }
+1 −1
Original line number Diff line number Diff line
@@ -2,7 +2,7 @@

module Api
  module OpenidConnect
    class Authorization < ActiveRecord::Base
    class Authorization < ApplicationRecord
      belongs_to :user
      belongs_to :o_auth_application

+1 −1
Original line number Diff line number Diff line
@@ -23,7 +23,7 @@

module Api
  module OpenidConnect
    class OAuthAccessToken < ActiveRecord::Base
    class OAuthAccessToken < ApplicationRecord
      belongs_to :authorization

      before_validation :setup, on: :create
+1 −1
Original line number Diff line number Diff line
@@ -25,7 +25,7 @@ require "digest"

module Api
  module OpenidConnect
    class OAuthApplication < ActiveRecord::Base
    class OAuthApplication < ApplicationRecord
      has_many :authorizations, dependent: :destroy
      has_many :user, through: :authorizations

+1 −1
Original line number Diff line number Diff line
@@ -23,7 +23,7 @@

module Api
  module OpenidConnect
    class PairwisePseudonymousIdentifier < ActiveRecord::Base
    class PairwisePseudonymousIdentifier < ApplicationRecord
      self.table_name = "ppid"

      belongs_to :o_auth_application
Loading