Sha256: 2b665c11de5e71ee1b27a5a5872df5d0a31f09ba5b9006a48bba62b00824bac7

Contents?: true

Size: 287 Bytes

Versions: 2

Compression:

Stored size: 287 Bytes

Contents

# encoding: UTF-8

require 'active_support/version'
require 'active_record/version'

module Goldiloader
  module Compatibility

    def self.mass_assignment_security_enabled?
      ::ActiveRecord::VERSION::MAJOR < 4 || defined?(::ActiveRecord::MassAssignmentSecurity)
    end

  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
goldiloader-0.0.4 spec/support/compatibility.rb
goldiloader-0.0.3 spec/support/compatibility.rb