Module: ROM::SQL::RelationExtension
- Defined in:
- lib/rom/sql/relation_extension.rb
Instance Attribute Summary collapse
-
#model ⇒ Object
readonly
Returns the value of attribute model.
Class Method Summary collapse
Instance Attribute Details
#model ⇒ Object (readonly)
Returns the value of attribute model.
5 6 7 |
# File 'lib/rom/sql/relation_extension.rb', line 5 def model @model end |
Class Method Details
.extended(relation) ⇒ Object
7 8 9 10 |
# File 'lib/rom/sql/relation_extension.rb', line 7 def self.extended(relation) relation.model.set_dataset(relation.dataset) relation.model.dataset.naked! end |