class Shoulda::Matchers::ActiveModel::EnsureInclusionOfMatcher

def allows_nil_value?

def allows_nil_value?
  if @options.key?(:allow_nil)
    @options[:allow_nil] == allows_value_of(nil)
  else
    true
  end
end