Browse Source

Maintenance: All models should inherit from ApplicationModel.

Thorsten Eckel 5 years ago
parent
commit
b9c82a4c7f
2 changed files with 2 additions and 2 deletions
  1. 1 1
      app/models/notification.rb
  2. 1 1
      app/models/token.rb

+ 1 - 1
app/models/notification.rb

@@ -1,4 +1,4 @@
 # Copyright (C) 2012-2016 Zammad Foundation, http://zammad-foundation.org/
 
-class Notification < ActiveRecord::Base
+class Notification < ApplicationModel
 end

+ 1 - 1
app/models/token.rb

@@ -1,6 +1,6 @@
 # Copyright (C) 2012-2016 Zammad Foundation, http://zammad-foundation.org/
 
-class Token < ActiveRecord::Base
+class Token < ApplicationModel
   before_create :generate_token
   belongs_to    :user, optional: true
   store         :preferences