lib/rom/relation.rb in rom-0.9.1 vs lib/rom/relation.rb in rom-1.0.0.beta1

- old
+ new

@@ -1,6 +1,5 @@ -require 'rom/support/deprecations' require 'rom/relation/class_interface' require 'rom/pipeline' require 'rom/mapper_registry' @@ -24,16 +23,14 @@ # provide extensions for those sub-classes but there is always a vanilla # relation instance stored in the schema registry. # # @api public class Relation - extend Deprecations extend ClassInterface - extend ROM::Support::GuardedInheritanceHook include Options - include Equalizer.new(:dataset) + include Dry::Equalizer(:dataset) include Materializable include Pipeline option :mappers, reader: true, default: proc { MapperRegistry.new } @@ -101,16 +98,9 @@ end # @api private def with(options) __new__(dataset, options) - end - deprecate :to_lazy, :with, "to_lazy is no longer needed" - - # @api public - def relation - Deprecations.announce("#relation", 'all relations are now lazy') - self end private # @api private