Module: ROM::SQL::Relation::Inspection

Included in:
ROM::SQL::Relation
Defined in:
lib/rom/sql/relation/inspection.rb

Instance Method Summary collapse

Instance Method Details

#modelObject



5
6
7
# File 'lib/rom/sql/relation/inspection.rb', line 5

def model
  self.class.model
end

#primary_keyObject

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.



10
11
12
# File 'lib/rom/sql/relation/inspection.rb', line 10

def primary_key
  model.primary_key
end