Skip to content

Commit

Permalink
Support redmine trunk (>=r22488) build
Browse files Browse the repository at this point in the history
  • Loading branch information
sanak committed May 9, 2024
1 parent 01f5b94 commit 66b0d45
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/models/resource_item.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class ResourceItem < ActiveRecord::Base
class ResourceItem < (defined?(ApplicationRecord) == 'constant' ? ApplicationRecord : ActiveRecord::Base)
belongs_to :project
belongs_to :category, class_name: 'ResourceCategory'

Expand Down
2 changes: 1 addition & 1 deletion app/models/supply_item.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# frozen_string_literal: true

class SupplyItem < ActiveRecord::Base
class SupplyItem < (defined?(ApplicationRecord) == 'constant' ? ApplicationRecord : ActiveRecord::Base)
belongs_to :project
has_many :issue_supply_items
has_many :issues, through: :issue_supply_items
Expand Down
2 changes: 1 addition & 1 deletion app/models/supply_item_journal.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class SupplyItemJournal < ActiveRecord::Base
class SupplyItemJournal < (defined?(ApplicationRecord) == 'constant' ? ApplicationRecord : ActiveRecord::Base)

belongs_to :supply_item
belongs_to :user
Expand Down

0 comments on commit 66b0d45

Please sign in to comment.