Sha256: f5c277fc3ac7512162c320581a0be77d19202b84b00d9092c091f75ead4f0fd7

Contents?: true

Size: 361 Bytes

Versions: 13

Compression:

Stored size: 361 Bytes

Contents

require 'active_record'

maj, min, _ = ActiveRecord.gem_version.segments

if maj == 5
  require_relative 'active_record_patches/5x.rb'
elsif maj == 6
  if min == 0
    require_relative 'active_record_patches/6_0.rb'
  else
    require_relative 'active_record_patches/6_1_plus.rb'
  end
else
  raise "Filtering only supported for ActiveRecord >= 5 && <= 6"  
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
praxis-2.0.pre.18 lib/praxis/extensions/attribute_filtering/active_record_patches.rb
praxis-2.0.pre.17 lib/praxis/extensions/attribute_filtering/active_record_patches.rb
praxis-2.0.pre.16 lib/praxis/extensions/attribute_filtering/active_record_patches.rb
praxis-2.0.pre.15 lib/praxis/extensions/attribute_filtering/active_record_patches.rb
praxis-2.0.pre.14 lib/praxis/extensions/attribute_filtering/active_record_patches.rb
praxis-2.0.pre.13 lib/praxis/extensions/attribute_filtering/active_record_patches.rb
praxis-2.0.pre.12 lib/praxis/extensions/attribute_filtering/active_record_patches.rb
praxis-2.0.pre.11 lib/praxis/extensions/attribute_filtering/active_record_patches.rb
praxis-2.0.pre.10 lib/praxis/extensions/attribute_filtering/active_record_patches.rb
praxis-2.0.pre.9 lib/praxis/extensions/attribute_filtering/active_record_patches.rb
praxis-2.0.pre.8 lib/praxis/extensions/attribute_filtering/active_record_patches.rb
praxis-2.0.pre.7 lib/praxis/extensions/attribute_filtering/active_record_patches.rb
praxis-2.0.pre.6 lib/praxis/extensions/attribute_filtering/active_record_patches.rb