lib/rom/factory/attribute_registry.rb in rom-factory-0.10.2 vs lib/rom/factory/attribute_registry.rb in rom-factory-0.11.0
- old
+ new
@@ -1,8 +1,8 @@
# frozen_string_literal: true
-require 'tsort'
+require "tsort"
module ROM
module Factory
# @api private
class AttributeRegistry
@@ -45,10 +45,10 @@
self.class.new(elements.select(&:value?))
end
# @api private
def associations
- self.class.new(elements.select { |e| e.kind_of?(Attributes::Association::Core) })
+ self.class.new(elements.select { |e| e.is_a?(Attributes::Association::Core) })
end
private
# @api private