Class: ROM::Components::DSL::Relation

Inherits:
Core
  • Object
show all
Defined in:
lib/rom/components/dsl/relation.rb

Overview

Setup DSL-specific relation extensions

Instance Method Summary collapse

Instance Method Details

#callObject

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.



15
16
17
# File 'lib/rom/components/dsl/relation.rb', line 15

def call
  super(constant: constant, config: constant.config.component)
end

#class_parentObject

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.



43
44
45
# File 'lib/rom/components/dsl/relation.rb', line 43

def class_parent
  ROM::Relation[adapter]
end