Skip to content

Commit

Permalink
Merge d98a019 into 00af59f
Browse files Browse the repository at this point in the history
  • Loading branch information
bbonislawski committed Feb 13, 2018
2 parents 00af59f + d98a019 commit 10dbac6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/versioncake/view_additions.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,10 @@
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]

Expand Down

0 comments on commit 10dbac6

Please sign in to comment.