diff --git a/app/models/hedgedoc_author.rb b/app/models/hedgedoc_author.rb index 4c4744d..ed7b8cb 100644 --- a/app/models/hedgedoc_author.rb +++ b/app/models/hedgedoc_author.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -class HedgedocAuthor < Rails.version < '7.1' ? ActiveRecord::Base : ApplicationRecord +class HedgedocAuthor < AdditionalsApplicationRecord include HedgedocDatabase self.table_name = 'Authors' diff --git a/app/models/hedgedoc_note.rb b/app/models/hedgedoc_note.rb index 3a39882..df6a424 100644 --- a/app/models/hedgedoc_note.rb +++ b/app/models/hedgedoc_note.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -class HedgedocNote < Rails.version < '7.1' ? ActiveRecord::Base : ApplicationRecord +class HedgedocNote < AdditionalsApplicationRecord include HedgedocDatabase self.table_name = 'Notes' diff --git a/app/models/hedgedoc_user.rb b/app/models/hedgedoc_user.rb index ae692ea..8971ae7 100644 --- a/app/models/hedgedoc_user.rb +++ b/app/models/hedgedoc_user.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -class HedgedocUser < Rails.version < '7.1' ? ActiveRecord::Base : ApplicationRecord +class HedgedocUser < AdditionalsApplicationRecord include HedgedocDatabase self.table_name = 'Users' diff --git a/init.rb b/init.rb index badbc55..dacf418 100644 --- a/init.rb +++ b/init.rb @@ -11,7 +11,7 @@ author_url 'https://alphanodes.com/' begin - requires_redmine_plugin :additionals, version_or_higher: '3.0.6' + requires_redmine_plugin :additionals, version_or_higher: '3.2.0' rescue Redmine::PluginNotFound raise 'Please install additionals plugin (https://github.com/alphanodes/additionals)' end