class Panko::Base
Public Instance Methods
build()
click to toggle source
# File lib/panko/base.rb, line 8 def build add_root end
Private Instance Methods
add_root()
click to toggle source
# File lib/panko/base.rb, line 17 def add_root add_breadcrumb t("layout.breadcrumb_root"), root_path end
method_missing(name, *args)
click to toggle source
Delegate *_path to the controller.
Calls superclass method
# File lib/panko/base.rb, line 26 def method_missing(name, *args) if name.to_s.end_with?("_path") controller.public_send(name, *args) else super end end
t(*opts)
click to toggle source
# File lib/panko/base.rb, line 21 def t(*opts) I18n.t(*opts) end