lib/rom/relation.rb in rom-0.7.1 vs lib/rom/relation.rb in rom-0.8.0
- old
+ new
@@ -4,18 +4,18 @@
require 'rom/relation/curried'
module ROM
# Base relation class
#
- # Relation is a proxy for the dataset object provided by the repository. It
+ # Relation is a proxy for the dataset object provided by the gateway. It
# forwards every method to the dataset, which is why the "native" interface of
- # the underlying repository is available in the relation. This interface,
+ # the underlying gateway is available in the relation. This interface,
# however, is considered private and should not be used outside of the
# relation instance.
#
# ROM builds sub-classes of this class for every relation defined in the env
- # for easy inspection and extensibility - every repository can provide extensions
+ # for easy inspection and extensibility - every gateway can provide extensions
# for those sub-classes but there is always a vanilla relation instance stored
# in the schema registry.
#
# @api public
class Relation
@@ -24,10 +24,10 @@
include Options
include Equalizer.new(:dataset)
# Dataset used by the relation
#
- # This object is provided by the repository during the setup
+ # This object is provided by the gateway during the setup
#
# @return [Object]
#
# @api private
attr_reader :dataset