Skip to content

Commit

Permalink
Updated version check
Browse files Browse the repository at this point in the history
  • Loading branch information
ankane committed Oct 22, 2024
1 parent e54ccf7 commit 122012a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/disco/model.rb
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
module Disco
module Model
def has_recommended(name, class_name: nil)
if ActiveRecord::VERSION::MAJOR < 6
raise Disco::Error, "Requires Active Record 6+"
if ActiveRecord::VERSION::MAJOR < 7
raise Disco::Error, "Requires Active Record 7+"
end

class_name ||= name.to_s.singularize.camelize
Expand Down

0 comments on commit 122012a

Please sign in to comment.