From 122012a5b8bb7641f0d55c391166752ca9cb7810 Mon Sep 17 00:00:00 2001 From: Andrew Kane Date: Tue, 22 Oct 2024 16:46:02 -0700 Subject: [PATCH] Updated version check --- lib/disco/model.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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