Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix frozen string error when mixing template engines #2299

Merged
merged 1 commit into from
Apr 18, 2022

Commits on Apr 18, 2022

  1. Fix frozen string error when mixing template engines

    There's already an _article.html.erb which was created when first installing alchemy.
    
    Now, after adding elements and page layouts, calling `rails g alchemy:elements --skip -e slim` gives the following warning:
    >  warning  View uses unexpected template engine 'erb'.
    followed by the this error:
    `/usr/local/rvm/gems/ruby-2.7.5/gems/alchemy_cms-6.0.0/lib/generators/alchemy/base.rb:20:in `gsub!': can't modify frozen String: "app/views/alchemy/elements/_article.html.slim" (FrozenError)`
    
    This PR fixes this.
    gr8bit authored Apr 18, 2022
    Configuration menu
    Copy the full SHA
    f89c911 View commit details
    Browse the repository at this point in the history