Method: Sibu::PagesHelper#section

Defined in:
app/helpers/sibu/pages_helper.rb

#section(id, tag, html_opts = {}, &block) ⇒ Object



302
303
304
305
306
# File 'app/helpers/sibu/pages_helper.rb', line 302

def section(id, tag, html_opts = {}, &block)
  @sb_section = [id]
  opts = action_name != 'show' ? html_opts.merge({"data-sb-id" => id, "data-sb-entity" => @sb_entity == @site ? 'site' : 'page'}) : html_opts
  (tag, capture(self, &block), opts)
end