Methods

Class/Module Index [+]

Quicksearch

Shoulda::Matchers::ActiveModel::NonNullableBooleanError

@private

Attributes

attribute[RW]

Public Class Methods

create(attribute) click to toggle source
# File lib/shoulda/matchers/active_model/errors.rb, line 9
def self.create(attribute)
  super(attribute: attribute)
end

Public Instance Methods

message() click to toggle source
# File lib/shoulda/matchers/active_model/errors.rb, line 15
def message
  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..strip
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.