Raised when a mass assignment method is called in strict mode with either a restricted column or a column without a setter method.
Attributes
column | [R] |
The column related to this exception, as a string. |
model | [R] |
The |
Public Class methods
create(msg, model, column)
Create an instance of this class with the model and column set.
[show source]
# File lib/sequel/model/exceptions.rb 37 def self.create(msg, model, column) 38 e = new("#{msg} for class #{model.class.inspect}") 39 e.instance_variable_set(:@model, model) 40 e.instance_variable_set(:@column, column) 41 e 42 end