Skip to content
  • eileencodes's avatar
    656c6faf
    Allow applications to change the behavior for a strict loading violation · 656c6faf
    eileencodes authored
    Originally strict loading violations would always raise an error if
    turned on for an association. This change allows for an application to
    optionally log instead of raise. The behavior here is similar to how
    strong parameters work. By default all environments will raise. An
    application may want to use log in production while working on finding
    all lazily loaded associations.
    
    Set `config.active_record.action_on_strict_loading_violation` to `:log`
    in your application to log instead of raise.
    656c6faf
    Allow applications to change the behavior for a strict loading violation
    eileencodes authored
    Originally strict loading violations would always raise an error if
    turned on for an association. This change allows for an application to
    optionally log instead of raise. The behavior here is similar to how
    strong parameters work. By default all environments will raise. An
    application may want to use log in production while working on finding
    all lazily loaded associations.
    
    Set `config.active_record.action_on_strict_loading_violation` to `:log`
    in your application to log instead of raise.
Loading