Skip to content

Commit

Permalink
use ApplicationRecord
Browse files Browse the repository at this point in the history
  • Loading branch information
kumojima committed Nov 15, 2024
1 parent 761e956 commit 1aa0e40
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/models/trashed_custom_value.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# frozen_string_literal: true

class TrashedCustomValue < ActiveRecord::Base
class TrashedCustomValue < defined?(ApplicationRecord) == 'constant' ? ApplicationRecord : ActiveRecord::Base
belongs_to :trashed_issue

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

class TrashedIssue < ActiveRecord::Base
class TrashedIssue < defined?(ApplicationRecord) == 'constant' ? ApplicationRecord : ActiveRecord::Base
belongs_to :project
has_many :trashed_custom_values, dependent: :destroy
belongs_to :deleted_by, class_name: 'User'
Expand Down

0 comments on commit 1aa0e40

Please sign in to comment.