Sha256: c7cb91622a65176b04a85118f24ad0e89a5acd0b6d6d10e7097c5f2daef4e95d

Contents?: true

Size: 228 Bytes

Versions: 20

Compression:

Stored size: 228 Bytes

Contents

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

20 entries across 20 versions & 1 rubygems

Version Path
journaled-5.3.1 config/initializers/change_protection.rb
journaled-5.3.0 config/initializers/change_protection.rb
journaled-5.2.0 config/initializers/change_protection.rb
journaled-5.1.1 config/initializers/change_protection.rb
journaled-5.1.0 config/initializers/change_protection.rb
journaled-5.0.0 config/initializers/change_protection.rb
journaled-4.3.0 config/initializers/change_protection.rb
journaled-4.2.0 config/initializers/change_protection.rb
journaled-4.1.0 config/initializers/change_protection.rb
journaled-4.0.0 config/initializers/change_protection.rb
journaled-3.1.0 config/initializers/change_protection.rb
journaled-3.0.0 config/initializers/change_protection.rb
journaled-2.5.0 config/initializers/change_protection.rb
journaled-2.4.0 config/initializers/change_protection.rb
journaled-2.3.1 config/initializers/change_protection.rb
journaled-2.3.0 config/initializers/change_protection.rb
journaled-2.2.0 config/initializers/change_protection.rb
journaled-2.1.1 config/initializers/change_protection.rb
journaled-2.1.0 config/initializers/change_protection.rb
journaled-2.0.3 config/initializers/change_protection.rb