lib/disco/model.rb in disco-0.4.2 vs lib/disco/model.rb in disco-0.5.0
- old
+ new
@@ -1,9 +1,9 @@
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
subject_type = model_name.name