class Shoulda::Matchers::ActiveModel::NonNullableBooleanError
@private
Attributes
Public Class Methods
Source
# File lib/shoulda/matchers/active_model/errors.rb, line 9 def self.create(attribute) super(attribute: attribute) end
Calls superclass method
Shoulda::Matchers::Error::create
Public Instance Methods
Source
# File lib/shoulda/matchers/active_model/errors.rb, line 15 def message <<-EOT.strip You have specified that your model's #{attribute} should ensure inclusion of nil. However, #{attribute} is a boolean column which does not allow null values. Hence, this test will fail and there is no way to make it pass. EOT end