lib/hanami/entity/schema.rb in hanami-model-1.3.0.beta1 vs lib/hanami/entity/schema.rb in hanami-model-1.3.0
- old
+ new
@@ -163,9 +163,10 @@
#
# @since 0.7.0
# @api private
def initialize(type = nil, &blk)
raise LocalJumpError unless block_given?
+
@attributes, @schema = Dsl.build(type, &blk)
@attributes = Hash[@attributes.map { |k, _| [k, true] }]
freeze
end