Exception: ROM::InvalidRelationName

Inherits:
StandardError
  • Object
show all
Defined in:
core/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.



37
38
39
# File 'core/lib/rom/constants.rb', line 37

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