Skip to content

Commit

Permalink
Keep compatibility with Redmine 5
Browse files Browse the repository at this point in the history
  • Loading branch information
nanego committed Nov 20, 2024
1 parent eee861f commit c08607f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ jobs:
- name: Prepare Redmine source
working-directory: redmine
run: |
rm -f test/integration/routing/plugins_test.rb # Fix routing tests # TODO Remove this line when https://www.redmine.org/issues/38707 is fixed
sed -i '/rubocop/d' Gemfile
rm -f .rubocop*
cp plugins/redmine_base_rspec/spec/support/database-${{ matrix.db }}.yml config/database.yml
Expand Down
6 changes: 6 additions & 0 deletions init.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,9 @@
:if => Proc.new {User.current.logged?}, :last => true
end

# Support for Redmine 5
if Redmine::VERSION::MAJOR < 6
class ApplicationRecord < ActiveRecord::Base
self.abstract_class = true
end
end

0 comments on commit c08607f

Please sign in to comment.