Skip to content

Commit

Permalink
Merge pull request #2299 from gr8bit/patch-1
Browse files Browse the repository at this point in the history
Fix frozen string error when mixing template engines
  • Loading branch information
tvdeyen authored Apr 18, 2022
2 parents 12e8a4f + f89c911 commit f83cbd6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/generators/alchemy/base.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ def conditional_template(source, destination)
# source and destination file names to use that engine.
if ext != template_engine.to_s
say_status :warning, "View uses unexpected template engine '#{ext}'.", :cyan
destination.gsub!(/#{template_engine}$/, ext)
source.gsub!(/#{template_engine}$/, ext)
destination = destination.gsub(/#{template_engine}$/, ext)
source = source.gsub(/#{template_engine}$/, ext)
end
end

Expand Down

0 comments on commit f83cbd6

Please sign in to comment.