Exception: Identifiable::Errors::ColumnMustBeASymbolError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/identifiable/errors.rb

Instance Method Summary collapse

Constructor Details

#initialize(column_value) ⇒ ColumnMustBeASymbolError

Returns a new instance of ColumnMustBeASymbolError.



6
7
8
9
10
# File 'lib/identifiable/errors.rb', line 6

def initialize(column_value)
  column_value_string = column_value.to_s || 'nil'
  column_value_class = column_value.class.to_s
  super("The identifiable's column must be a symbol. You passed in #{column_value_string}, which was a #{column_value_class}.")
end