Class: Nylas::ModelMissingFieldError

Inherits:
ModelActionError show all
Defined in:
lib/nylas/errors.rb

Overview

Raised when attempting to set a field that is not on a model with mass assignment

Instance Method Summary collapse

Constructor Details

#initialize(field, model) ⇒ ModelMissingFieldError

Returns a new instance of ModelMissingFieldError.



21
22
23
# File 'lib/nylas/errors.rb', line 21

def initialize(field, model)
  super("#{field} is not a valid attribute for #{model.class.name}")
end