lib/voom/presenters/dsl/components/mixins/avatar.rb in voom-presenters-0.2.0 vs lib/voom/presenters/dsl/components/mixins/avatar.rb in voom-presenters-2.0.0

- old
+ new

@@ -3,12 +3,10 @@ module DSL module Components module Mixins module Avatar def avatar(avatar = nil, **attribs, &block) - return @avatar if locked? - @avatar = Components::Avatar.new(parent: self, avatar: avatar, - **attribs, &block) + self << Components::Avatar.new(parent: self, avatar: avatar, **attribs, &block) end end end end end