Methods

Class/Module Index [+]

Quicksearch

Shoulda::Matchers::ActiveModel::CouldNotSetPasswordError

@private

Attributes

model[RW]

Public Class Methods

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

Public Instance Methods

message() click to toggle source
# File lib/shoulda/matchers/active_model/errors.rb, line 32
def message
  The validation failed because your #{model_name} model declares `has_secure_password`, and`validate_presence_of` was called on a #{record_name} which has `password` already set to a value.Please use a #{record_name} with an empty `password` instead..strip
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.