salsify/delayed_job_heartbeat_plugin

View on GitHub
lib/delayed/heartbeat/compatibility.rb

Summary

Maintainability
A
0 mins
Test Coverage
# 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