Exception: ROM::InvalidRelationName

Inherits:
StandardError
  • Object
show all
Defined in:
lib/rom/constants.rb

Overview

Exception raised when a reserved keyword is used as a relation name

Instance Method Summary collapse

Constructor Details

#initialize(relation) ⇒ InvalidRelationName

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns a new instance of InvalidRelationName.


39
40
41
# File 'lib/rom/constants.rb', line 39

def initialize(relation)
  super("Relation name: #{relation} is a protected word, please use another relation name")
end