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 Model attribute methods are publicly callable 2020-10-02 13:48:33 +09:00
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 Change safe guard to check for each_pair instead of stringify_keys 2020-02-07 11:36:35 -05:00
attribute_methods_test.rb Model attribute methods are publicly callable 2020-10-02 13:48:33 +09:00
attribute_set_test.rb Add ActiveModel::AttributeSet#values_for_database 2021-06-08 16:39:23 +09:00
attribute_test.rb Revert "No such class since 8d2866bb80fbe81acb04f5b0c44f152f571fb29f" 2019-08-02 00:25:13 -04:00
attributes_dirty_test.rb Test clear_changes_information rather than reload 2019-10-21 10:52:54 +09:00
attributes_test.rb Raise unknown type error on the definition time 2021-01-19 15:52:12 +09:00
callbacks_test.rb Make sure the :if options of callbacks is not mutated 2020-12-29 03:56:54 +00:00
conversion_test.rb Revert "No such class since 8d2866bb80fbe81acb04f5b0c44f152f571fb29f" 2019-08-02 00:25:13 -04:00
dirty_test.rb Fix `to_json` after `changes_applied` for `ActiveModel::Dirty` object 2021-07-24 08:22:18 +09:00
error_test.rb Rename Error#detail method as details 2020-09-11 17:03:59 +08:00
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 Revert "MethodCallAssertions is a regular player of the team ActiveSupport::TestCase now" 2019-08-02 00:24:21 -04:00
lint_test.rb Revert "No such class since 8d2866bb80fbe81acb04f5b0c44f152f571fb29f" 2019-08-02 00:25:13 -04:00
model_test.rb Revert "No such class since 8d2866bb80fbe81acb04f5b0c44f152f571fb29f" 2019-08-02 00:25:13 -04:00
naming_test.rb Add `uncountable?` method to ActiveModel::Name 2021-02-18 09:55:29 +03:00
nested_error_test.rb Revert "No such class since 8d2866bb80fbe81acb04f5b0c44f152f571fb29f" 2019-08-02 00:25:13 -04:00
railtie_test.rb Revert "No such class since 8d2866bb80fbe81acb04f5b0c44f152f571fb29f" 2019-08-02 00:25:13 -04:00
secure_password_test.rb Revert "No such class since 8d2866bb80fbe81acb04f5b0c44f152f571fb29f" 2019-08-02 00:25:13 -04:00
serialization_test.rb Revert "No such class since 8d2866bb80fbe81acb04f5b0c44f152f571fb29f" 2019-08-02 00:25:13 -04:00
translation_test.rb Revert "No such class since 8d2866bb80fbe81acb04f5b0c44f152f571fb29f" 2019-08-02 00:25:13 -04:00
type_test.rb Fix delegation in ActiveModel::Type.lookup 2021-05-25 16:01:17 +02:00
validations_test.rb Handle frozen conditions in validate 2020-11-06 12:06:03 +09:00