lib/rom/sql/schema/attributes_inferrer.rb in rom-sql-2.5.0 vs lib/rom/sql/schema/attributes_inferrer.rb in rom-sql-3.0.0
- old
+ new
@@ -23,13 +23,13 @@
columns = filter_columns(gateway.connection.schema(dataset))
inferred = columns.map do |(name, definition)|
type = type_builder.(definition)
- attr_class.new(type.meta(name: name, source: schema.name)) if type
+ attr_class.new(type.meta(source: schema.name), name: name) if type
end.compact
- missing = columns.map(&:first) - inferred.map { |attr| attr.meta[:name] }
+ missing = columns.map(&:first) - inferred.map { |attr| attr.name }
[inferred, missing]
end
undef :with