lib/ownership.rb in ownership-0.1.1 vs lib/ownership.rb in ownership-0.1.2

- old
+ new

@@ -21,9 +21,13 @@ require "ownership/controller_methods" include Ownership::ControllerMethods end ActiveSupport.on_load(:active_record) do + if ActiveRecord::VERSION::MAJOR >= 7 + ActiveRecord::QueryLogs.taggings[:owner] ||= -> { Ownership.owner } + end + require "ownership/marginalia" if defined?(Marginalia) end ActiveSupport.on_load(:active_job) do require "ownership/job_methods"