lib/loaf/crumb.rb in loaf-0.6.1 vs lib/loaf/crumb.rb in loaf-0.6.2
- old
+ new
@@ -11,10 +11,10 @@
attr_reader :match
def initialize(name, url, options = {})
@name = name || raise_name_error
@url = url || raise_url_error
- @match = options.fetch(:match, :inclusive)
+ @match = options.fetch(:match, Loaf.configuration.match)
freeze
end
def raise_name_error
raise ArgumentError, 'breadcrumb first argument, `name`, cannot be nil'