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

- old
+ new

@@ -4,18 +4,18 @@ module Components class Footer < Base attr_accessor :footer_type, :menus def initialize(type: nil, **attribs_, &block) - @footer_type = h(type) || :small + @footer_type = type || :small super(type: :footer, **attribs_, &block) @menus = [] expand! end def menu(title=nil, **attribs, &block) return @menus if locked? - @menus << Menu.new(title,parent: self, + @menus << Menu.new(title,parent: self, **attribs, &block) end end end