class Identifiable::Errors::ColumnMustExistInTheTableError

Public Class Methods

new(column_value, valid_columns:) click to toggle source
Calls superclass method
# File lib/identifiable/errors.rb, line 20
def initialize(column_value, valid_columns:)
  column_value_string = column_value.to_s || 'nil'
  super("The identifiable's column must exist on the table for this model. You passed in #{column_value_string}, but the valid columns are: #{valid_columns}")
end