block.rb 281 Bytes Edit Raw Blame History 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 require_dependency 'block' class Block def box_with_container_block_plugin box = box_without_container_block_plugin if box && box.owner.kind_of?(ContainerBlock) box = box.owner.box end box end alias_method_chain :box, :container_block_plugin end