Module: Delayed::Heartbeat::Compatibility

Defined in:
lib/delayed/heartbeat/compatibility.rb

Class Method Summary collapse

Class Method Details

.mass_assignment_security_enabled?Boolean

Returns:

  • (Boolean)


10
11
12
# File 'lib/delayed/heartbeat/compatibility.rb', line 10

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