mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
c477d95604
Currently `ActiveModel::Model` is defined as the minimum API to talk with Action Pack and Action View. Its name suggests it can be included to create Active Record type models, but for creating models it's probably too minimal. For example it's very common to include ActiveModel::Attributes as well. By moving `ActiveModel::Model`'s implementation to a new `ActiveModel::API` we keep a definition of the minimum API to talk with Action Pack and Action View. For `ActiveModel::Model` we only need to include `ActiveModel::API`. This will allow adding more funcationality to `ActiveModel::Model` while keeping backwards compatibility. Co-authored-by: Nathaniel Watts <1141717+thewatts@users.noreply.github.com> |
||
---|---|---|
.. | ||
serializers | ||
type | ||
validations | ||
api_test.rb | ||
attribute_assignment_test.rb | ||
attribute_methods_test.rb | ||
attribute_set_test.rb | ||
attribute_test.rb | ||
attributes_dirty_test.rb | ||
attributes_test.rb | ||
callbacks_test.rb | ||
conversion_test.rb | ||
dirty_test.rb | ||
error_test.rb | ||
errors_test.rb | ||
forbidden_attributes_protection_test.rb | ||
helper.rb | ||
lint_test.rb | ||
model_test.rb | ||
naming_test.rb | ||
nested_error_test.rb | ||
railtie_test.rb | ||
secure_password_test.rb | ||
serialization_test.rb | ||
translation_test.rb | ||
type_test.rb | ||
validations_test.rb |