class Sequel::MassAssignmentRestriction
Raised when a mass assignment method is called in strict mode with either a restricted column or a column without a setter method.
Attributes
The column related to this exception, as a string.
The Sequel::Model
object related to this exception.
Public Class Methods
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
Create an instance of this class with the model and column set.