factory_bot v5.1.0 Release Notes

Release Date: 2019-09-21 // over 2 years ago
    • ➕ Added: "Did you mean?" style error message to help with typos in association declarations
    • 💅 Changed: NoMethodError for static attributes now offers a "Did you mean?" style message
    • 🛠 Fixed: avoid undefining inherited evaluator methods
    • 🛠 Fixed: avoid stubbing id for records without a primary key
    • 🛠 Fixed: raise a helpful error for self-referencing traits to avoid a SystemStackError
    • Deprecated: top-level methods meant only for internal use: allow_class_lookup, allow_class_lookup=, register_trait, trait_by_name, traits, sequence_by_name, sequences, factory_by_name, register_factory, callback_names, register_callback, register_default_callbacks, register_default_strategies, strategies