Sha256: 219b5b5209bc03014cb8a88111bc6c91b56d4dc3063ed319b554d8ab885ebabc

Contents?: true

Size: 318 Bytes

Versions: 6

Compression:

Stored size: 318 Bytes

Contents

# encoding: UTF-8

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

module Delayed
  module JobGroups
    module Compatibility

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

    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
delayed_job_groups_plugin-0.3.0 lib/delayed/job_groups/compatibility.rb
delayed_job_groups_plugin-0.2.0 lib/delayed/job_groups/compatibility.rb
delayed_job_groups_plugin-0.1.3 lib/delayed/job_groups/compatibility.rb
delayed_job_groups_plugin-0.1.2 lib/delayed/job_groups/compatibility.rb
delayed_job_groups_plugin-0.1.1 lib/delayed/job_groups/compatibility.rb
delayed_job_groups_plugin-0.1.0 lib/delayed/job_groups/compatibility.rb