Exception: ForeignKeyValidation::Errors::NoReleationFoundError

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

Instance Method Summary collapse

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