Sha256: a7b7b5fcfe633823e6f7dfa6a46fa884cbccbeee64ed13dec80e99d0ca31e0fb
Contents?: true
Size: 737 Bytes
Versions: 17
Compression:
Stored size: 737 Bytes
Contents
module RulesEngineView module Boxes def re_whitebox(&block) result = '' result << '<div class="re-whitebox">' result << '<div class="re-whitebox-content">' result << capture(&block) result << '<div class="clear"></div>' result << '</div>' result << '</div>' concat result end def re_shadowbox(&block) result = '' result << '<div class="re-shadowbox-outer">' result << '<div class="re-shadowbox-inner">' result << capture(&block) result << '<div class="clear"></div>' result << '</div>' result << '</div>' concat result end end end ActionView::Base.class_eval do include RulesEngineView::Boxes end
Version data entries
17 entries across 17 versions & 1 rubygems