Skip to content

Commit

Permalink
Merge pull request #72 from spark-solutions/master
Browse files Browse the repository at this point in the history
don't replace frozen strings
  • Loading branch information
bwillis committed Mar 4, 2018
2 parents 00af59f + d98a019 commit 3a2d272
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 3a2d272

Please sign in to comment.