diff --git a/app/models/hedgedoc_author.rb b/app/models/hedgedoc_author.rb index 3a53bc1..4c4744d 100644 --- a/app/models/hedgedoc_author.rb +++ b/app/models/hedgedoc_author.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -class HedgedocAuthor < ActiveRecord::Base +class HedgedocAuthor < Rails.version < '7.1' ? ActiveRecord::Base : ApplicationRecord include HedgedocDatabase self.table_name = 'Authors' diff --git a/app/models/hedgedoc_note.rb b/app/models/hedgedoc_note.rb index 60a50cb..3a39882 100644 --- a/app/models/hedgedoc_note.rb +++ b/app/models/hedgedoc_note.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -class HedgedocNote < ActiveRecord::Base +class HedgedocNote < Rails.version < '7.1' ? ActiveRecord::Base : ApplicationRecord include HedgedocDatabase self.table_name = 'Notes' diff --git a/app/models/hedgedoc_user.rb b/app/models/hedgedoc_user.rb index 47ee207..ae692ea 100644 --- a/app/models/hedgedoc_user.rb +++ b/app/models/hedgedoc_user.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -class HedgedocUser < ActiveRecord::Base +class HedgedocUser < Rails.version < '7.1' ? ActiveRecord::Base : ApplicationRecord include HedgedocDatabase self.table_name = 'Users'