Browse files

Should be able to make a layout builder without passing a block

  • Loading branch information...
1 parent e774dde commit 52174ec197ae789af796f53f02ea32b1b012db7b @mboeh committed Mar 16, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/woodhouse/layout_builder.rb
View
2 lib/woodhouse/layout_builder.rb
@@ -44,7 +44,7 @@ def initialize(config, layout = nil)
@config = config
@layout = layout || Woodhouse::Layout.new
@nodes ||= {}
- yield self
+ yield self if block_given?
end
def node(name)

0 comments on commit 52174ec

Please sign in to comment.