Skip to content

Commit

Permalink
revert to ActiveRecord::Base
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandermeindl committed Jan 31, 2024
1 parent 48dc30a commit 5788828
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion test/redmine/models/issue.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
require_relative 'project'
require_relative 'user'

class Issue < Rails.version < '7.1' ? ActiveRecord::Base : ApplicationRecord
class Issue < ActiveRecord::Base
belongs_to :project
belongs_to :user
belongs_to :author, class_name: 'User'
Expand Down
2 changes: 1 addition & 1 deletion test/redmine/models/project.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# frozen_string_literal: true

class Project < Rails.version < '7.1' ? ActiveRecord::Base : ApplicationRecord
class Project < ActiveRecord::Base
STATUS_ACTIVE = 1
has_many :issues, dependent: :destroy

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

class User < Rails.version < '7.1' ? ActiveRecord::Base : ApplicationRecord
class User < ActiveRecord::Base
has_many :issues

def self.current
Expand Down

0 comments on commit 5788828

Please sign in to comment.