Exception: Identifiable::Errors::ColumnMustBeASymbolError
- Inherits:
-
StandardError
- Object
- StandardError
- Identifiable::Errors::ColumnMustBeASymbolError
- Defined in:
- lib/identifiable/errors.rb
Instance Method Summary collapse
-
#initialize(column_value) ⇒ ColumnMustBeASymbolError
constructor
A new instance of ColumnMustBeASymbolError.
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 |