lib/rom/relation.rb in rom-3.2.2 vs lib/rom/relation.rb in rom-3.2.3

- old
+ new

@@ -1,6 +1,7 @@ require 'dry/core/class_attributes' +require 'dry/core/deprecations' require 'rom/initializer' require 'rom/relation/class_interface' require 'rom/pipeline' @@ -39,10 +40,11 @@ # Default no-op output schema which is called in `Relation#each` NOOP_OUTPUT_SCHEMA = -> tuple { tuple }.freeze extend Initializer extend ClassInterface + extend Dry::Core::Deprecations[:rom] extend Dry::Core::ClassAttributes defines :schema_class, :schema_inferrer, :schema_dsl schema_dsl Schema::DSL @@ -118,12 +120,13 @@ # @param [Array<Relation>] others The other relation(s) to compose with # # @return [Relation::Graph] # # @api public - def combine(*others) + def graph(*others) Graph.build(self, others) end + deprecate :combine, :graph # Loads relation # # @return [Relation::Loaded] #