spec/support/helpers.rb in rom-sql-2.0.0.beta1 vs spec/support/helpers.rb in rom-sql-2.0.0.beta2
- old
+ new
@@ -10,10 +10,10 @@
attributes: attrs.map { |key, value| value.meta(name: key, source: relation_name) },
attr_class: ROM::SQL::Attribute
)
end
- def define_type(name, id, **opts)
+ def define_attribute(name, id, **opts)
ROM::SQL::Attribute.new(ROM::Types.const_get(id).meta(name: name, **opts))
end
def build_assoc(type, *args)
klass = Dry::Core::Inflector.classify(type)