Sha256: f5d886043d4ba9c0856908edd16c34bca0883db0d393f1ab48d094de9fcc8c22

Contents?: true

Size: 299 Bytes

Versions: 2

Compression:

Stored size: 299 Bytes

Contents

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

2 entries across 2 versions & 1 rubygems

Version Path
delayed_job_heartbeat_plugin-0.2.0 lib/delayed/heartbeat/compatibility.rb
delayed_job_heartbeat_plugin-0.1.0 lib/delayed/heartbeat/compatibility.rb