Sha256: 4b3c18dbb27c4f74186f898e5ff630e11c2519227a8da2ab3729f9a93222ba02
Contents?: true
Size: 509 Bytes
Versions: 6
Compression:
Stored size: 509 Bytes
Contents
module Breadcrumble module ActionView # Render breadcrumbs. def render_breadcrumbs(options = {}) _render_breadcrumb('breadcrumb', options) end # Render breadcrumb trails. def render_breadcrumb_trails(options = {}) _render_breadcrumb('breadcrumb_trails', options) end private def _render_breadcrumb(path, options) theme = options[:theme] ? "#{options[:theme]}/" : '' render partial: "breadcrumble/#{theme}#{path}", locals: options end end end
Version data entries
6 entries across 6 versions & 1 rubygems