lib/teacup/layout.rb in teacup-2.0.2 vs lib/teacup/layout.rb in teacup-2.0.3

- old
+ new

@@ -153,10 +153,14 @@ else raise "The argument #{setting.inspect} is not supported in Teacup::Layout::layout()" end end - Teacup.apply_hash view, teacup_style.build(view) + if view.is_a? Teacup::View + view.style(teacup_style.build(view)) + else + Teacup.apply_hash view, teacup_style.build(view) + end # assign the 'teacup_next_responder', which is queried for a stylesheet if # one is not explicitly assigned to the view if view.is_a? Layout view.teacup_next_responder = self