1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/activemodel/test/cases
Petrik c477d95604 Introduce ActiveModel::API
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>
2021-09-15 18:24:47 +02:00
..
serializers
type Fix dirty check for Float::NaN and BigDecimal::NaN 2021-07-22 09:49:16 -03:00
validations Fixes a typo and wordsmithing in the exception message. Typo: nor -> or 2021-04-24 21:10:24 +05:30
api_test.rb Introduce ActiveModel::API 2021-09-15 18:24:47 +02:00
attribute_assignment_test.rb
attribute_methods_test.rb
attribute_set_test.rb Add ActiveModel::AttributeSet#values_for_database 2021-06-08 16:39:23 +09:00
attribute_test.rb
attributes_dirty_test.rb
attributes_test.rb
callbacks_test.rb
conversion_test.rb
dirty_test.rb Fix to_json after changes_applied for ActiveModel::Dirty object 2021-07-24 08:22:18 +09:00
error_test.rb
errors_test.rb Merge pull request #42832 from lulalala/slim-errors-inspect 2021-07-23 09:05:08 +02:00
forbidden_attributes_protection_test.rb
helper.rb
lint_test.rb
model_test.rb
naming_test.rb Add uncountable? method to ActiveModel::Name 2021-02-18 09:55:29 +03:00
nested_error_test.rb
railtie_test.rb
secure_password_test.rb
serialization_test.rb
translation_test.rb
type_test.rb Fix delegation in ActiveModel::Type.lookup 2021-05-25 16:01:17 +02:00
validations_test.rb