Module: Crumby
- Defined in:
- lib/crumby.rb,
lib/crumby/entry.rb,
lib/crumby/trail.rb
Overview
crumy is a breadcrumb plugin for rails
Defined Under Namespace
Modules: Helper, Renderer Classes: Entry, Trail
Constant Summary collapse
Class Method Summary collapse
-
.configure(&block) ⇒ Object
configure crumby.
-
.init! ⇒ Object
initialize the crumby plugin.
Class Method Details
.configure(&block) ⇒ Object
configure crumby
22 23 24 |
# File 'lib/crumby.rb', line 22 def configure(&block) self.instance_eval &block end |
.init! ⇒ Object
initialize the crumby plugin. includes Controller and View helpers
28 29 30 31 32 33 34 35 36 |
# 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 |