Sha256: c724d3aba5e7746269abc9a2a94b4062efea58aadd3126dfc56948662744aa5c

Contents?: true

Size: 330 Bytes

Versions: 3

Compression:

Stored size: 330 Bytes

Contents

# frozen_string_literal: true

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

module Delayed
  module Heartbeat
    module Compatibility

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

    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
delayed_job_heartbeat_plugin-0.6.0 lib/delayed/heartbeat/compatibility.rb
delayed_job_heartbeat_plugin-0.5.0 lib/delayed/heartbeat/compatibility.rb
delayed_job_heartbeat_plugin-0.4.0 lib/delayed/heartbeat/compatibility.rb