lib/versioncake/view_additions.rb in versioncake-3.3.0 vs lib/versioncake/view_additions.rb in versioncake-3.4.0
- old
+ new
@@ -14,10 +14,13 @@
versions: ".",
variants: "+",
handlers: "."
})
- ActionView::PathResolver::DEFAULT_PATTERN.replace ":prefix/:action{.:locale,}{.:formats,}{+:variants,}{.:versions,}{.:handlers,}"
+ def initialize(pattern = nil)
+ @pattern = pattern || ":prefix/:action{.:locale,}{.:formats,}{+:variants,}{.:versions,}{.:handlers,}"
+ super()
+ end
else
ActionView::PathResolver::EXTENSIONS.replace [:locale, :formats, :versions, :handlers]
# The query builder has the @details from the lookup_context and will
# match the detail name to the string in the pattern, so we must append