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 18, 2024
1 parent 0eabf12 commit 5147ee2
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/redmine_admin_activity/models/custom_field_patch.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ def to_s
end
end

class CustomField < ApplicationRecord
class CustomField
prepend RedmineAdminActivity::Models::CustomFieldPatch

def self.representative_columns
Expand Down
2 changes: 1 addition & 1 deletion lib/redmine_admin_activity/models/member_patch.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def update_project_journal
end
end

class Member < ApplicationRecord
class Member
prepend RedmineAdminActivity::Models::MemberPatch

attr_reader :project_journal
Expand Down
2 changes: 1 addition & 1 deletion lib/redmine_admin_activity/models/project_patch.rb
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def create_journal
end
end

class Project < ApplicationRecord
class Project
prepend RedmineAdminActivity::Models::ProjectPatch

acts_as_watchable
Expand Down
2 changes: 1 addition & 1 deletion lib/redmine_admin_activity/models/version_patch.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def save_previous_version
end
end

class Version < ApplicationRecord
class Version
prepend RedmineAdminActivity::Models::VersionPatch

before_update :save_previous_version
Expand Down

0 comments on commit 5147ee2

Please sign in to comment.