lib/loaf/view_extensions.rb in loaf-0.2.0 vs lib/loaf/view_extensions.rb in loaf-0.2.1
- old
+ new
@@ -7,10 +7,10 @@
include Loaf::CrumbFormatter
# Adds breadcrumbs in a view.
#
def add_breadcrumb(name, url)
- _breadcrumbs.push(name, url)
+ _breadcrumbs.push Loaf::Crumb.new(name, url)
end
# Renders breadcrumbs inside view.
#
def breadcrumbs(options={}, &block)