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 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