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

Use to_prepare for autoloading to support Rails 7 #14

Merged
merged 1 commit into from
Feb 18, 2022

Commits on Dec 17, 2021

  1. Use to_prepare to use autoload inside engine config

    In Rails 7, previous code raises a NameError.
    ```
    /bundle/ruby/3.0.0/gems/ember-cli-rails-assets-0.6.2/lib/ember_cli/assets/engine.rb:5:in `block in <class:Engine>': uninitialized constant EmberCli::Assets::Engine::EmberCliRailsAssetsHelper (NameError)
    ```
    
    Using `to_prepare` is recommended to use autoload since Rails 7.
    rails/rails@dc047f7
    tricknotes committed Dec 17, 2021
    Configuration menu
    Copy the full SHA
    a3fb989 View commit details
    Browse the repository at this point in the history