lib/vedeu/api/composition.rb in vedeu-0.1.18 vs lib/vedeu/api/composition.rb in vedeu-0.1.19

- old
+ new

@@ -1,12 +1,15 @@ module Vedeu module API + + # @see Vedeu::Composition class Composition < Vedeu::Composition # @api public # @see Vedeu::API#view def view(name, &block) - attributes[:interfaces] << Interface.build({ name: name }, &block) + attributes[:interfaces] << API::Interface + .build({ name: name, parent: self.view_attributes }, &block) end end end end