Sha256: fd37a637f03a257c20cb0299c05f6f9b231eebe66e9ce659d8c48d22a58b0ed8

Contents?: true

Size: 259 Bytes

Versions: 1

Compression:

Stored size: 259 Bytes

Contents

# frozen_string_literal: true

if Rails::VERSION::MAJOR > 5 || (Rails::VERSION::MAJOR == 5 && Rails::VERSION::MINOR >= 2)
  require 'journaled/relation_change_protection'
  ActiveRecord::Relation.class_eval { prepend Journaled::RelationChangeProtection }
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
journaled-5.3.2 config/initializers/change_protection.rb