Exception: ForeignKeyValidation::Errors::NoReleationFoundError
- Inherits:
-
StandardError
- Object
- StandardError
- ForeignKeyValidation::Errors::NoReleationFoundError
- Defined in:
- lib/foreign_key_validation/errors.rb
Instance Method Summary collapse
-
#initialize(name) ⇒ NoReleationFoundError
constructor
A new instance of NoReleationFoundError.
Constructor Details
#initialize(name) ⇒ NoReleationFoundError
Returns a new instance of NoReleationFoundError.
5 6 7 |
# File 'lib/foreign_key_validation/errors.rb', line 5 def initialize(name) super("Can't find any belongs_to relations for #{name} class. Put validation call below association definitions!") end |