module Crumby

crumy is a breadcrumb plugin for rails

Public Class Methods

configure(&block) click to toggle source

configure crumby @example

Crumby.configure do
  # configure the default renderer
  # renderer = Renderer::Haml
end
# File lib/crumby.rb, line 22
def configure(&block)
  self.instance_eval &block
end
init!() click to toggle source

initialize the crumby plugin. includes Controller and View helpers

# File lib/crumby.rb, line 28
def init!
  ActiveSupport.on_load(:action_controller) do
    ActionController::Base.send :include, Crumby::Helper::ControllerHelper
  end

  ActiveSupport.on_load(:action_view) do
    ActionView::Base.send :include, Crumby::Helper::ViewHelper
  end
end