f2873d596d
- I'm hoping to get this change accepted even though this flag was introduced years ago in 6576f7354e50afb79881aaf3a6f50f4e81dfab70 My use case is the following: We were never enforcing belongs to association and we have a lot of models that implicitely declare an association as optional. We are now changing all our models to make associations required by default. Since we have a lot of models (more than 1000), I'd like to progressively enable them to use the `belongs_to_required_by_default` flag. The problem is that this flag is a mattr_accessor and doesn't to be set per model. We basically need to modify all our models (which could take years) before being able to modify the global flag. I'd like to change this flag to a class_attribute to solve the issue. |
||
---|---|---|
.. | ||
belongs_to_associations_test.rb | ||
bidirectional_destroy_dependencies_test.rb | ||
callbacks_test.rb | ||
cascaded_eager_loading_test.rb | ||
eager_load_includes_full_sti_class_test.rb | ||
eager_load_nested_include_test.rb | ||
eager_singularization_test.rb | ||
eager_test.rb | ||
extension_test.rb | ||
has_and_belongs_to_many_associations_test.rb | ||
has_many_associations_test.rb | ||
has_many_through_associations_test.rb | ||
has_one_associations_test.rb | ||
has_one_through_associations_test.rb | ||
inner_join_association_test.rb | ||
inverse_associations_test.rb | ||
join_model_test.rb | ||
left_outer_join_association_test.rb | ||
nested_through_associations_test.rb | ||
required_test.rb |