Sha256: 35bbd91ca9c2f09f9c336d04f0735c88af1c07717d77e427b41f5429c4af31eb
Contents?: true
Size: 577 Bytes
Versions: 2
Compression:
Stored size: 577 Bytes
Contents
module Bread module Controller extend ActiveSupport::Concern included do helper_method :bread end def bread controller = if respond_to?(:controller) controller else self end crumbset = Bread.actions.get_crumbset(controller_path, action_name) Bread.crumbs.crumbs_for(controller, crumbset) end end end if defined? ActionController::Base ActionController::Base.class_eval do include Bread::Controller end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
bread-0.0.13 | lib/bread/controller.rb |
bread-0.0.12 | lib/bread/controller.rb |