Exception: NcsNavigator::Warehouse::Transformers::Database::UnusedColumnsForModelError
- Inherits:
-
StandardError
- Object
- StandardError
- NcsNavigator::Warehouse::Transformers::Database::UnusedColumnsForModelError
- Defined in:
- lib/ncs_navigator/warehouse/transformers/database.rb
Instance Attribute Summary collapse
-
#unused ⇒ Object
Returns the value of attribute unused.
Instance Method Summary collapse
-
#initialize(unused) ⇒ UnusedColumnsForModelError
constructor
A new instance of UnusedColumnsForModelError.
Constructor Details
#initialize(unused) ⇒ UnusedColumnsForModelError
Returns a new instance of UnusedColumnsForModelError.
454 455 456 457 458 459 |
# File 'lib/ncs_navigator/warehouse/transformers/database.rb', line 454 def initialize(unused) super( "#{unused.size} unused column#{'s' unless unused.size == 1} when building model. " + "Use :ignored_columns => %w(#{unused.join(' ')}) or :on_unused => :ignore to suppress this error.") @unused = unused end |
Instance Attribute Details
#unused ⇒ Object
Returns the value of attribute unused.
452 453 454 |
# File 'lib/ncs_navigator/warehouse/transformers/database.rb', line 452 def unused @unused end |