diff --git a/lib/disco/model.rb b/lib/disco/model.rb index a9e7e8a..1d79886 100644 --- a/lib/disco/model.rb +++ b/lib/disco/model.rb @@ -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