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
column[R]
The column related to this exception, as a string.
model[R]
The Sequel::Model object related to this exception.
Public Class Methods
create(msg, model, column)
click to toggle source
Create an instance of this class with the model and column set.
# File lib/sequel/model/exceptions.rb, line 36 def self.create(msg, model, column) e = new("#{msg} for class #{model.class.inspect}") e.instance_variable_set(:@model, model) e.instance_variable_set(:@column, column) e end