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

Leoarnold/activerecord on load #439

Closed

Commits on Nov 17, 2023

  1. Wrap ActiveRecord configuration into initializer

    `Rails.application` is not available when the railties are collected,
    so we move the ActiveRecord configuration into the initializer phase.
    
    ```
    NoMethodError: undefined method `config' for nil:NilClass (NoMethodError)
          application.config
                     ^^^^^^^
    /project/app/vendor/bundle/ruby/3.2.0/gems/railties-7.0.8/lib/rails.rb:47:in `configuration'
    /project/app/vendor/bundle/ruby/3.2.0/gems/factory_bot_rails-6.4.0/lib/factory_bot_rails/railtie.rb:25:in `block in <class:Railtie>'
    ```
    leoarnold committed Nov 17, 2023
    Configuration menu
    Copy the full SHA
    8205851 View commit details
    Browse the repository at this point in the history

Commits on Nov 23, 2023

  1. Configuration menu
    Copy the full SHA
    618772f View commit details
    Browse the repository at this point in the history