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
Ian Ker-Seymer c5d62cb86d activemodel: make .model_name json encodable
Previously, calling `User.model_name.to_json` would result in an infinite
recursion as `.model_name` inherited its `.as_json` behavior from Object. This
patch fixes that unexpected behavior by delegating `.as_json` to :name.
2015-02-24 11:00:32 -07:00
..
serializers activemodel: make .model_name json encodable 2015-02-24 11:00:32 -07:00
validations Deprecate ActiveModel::Errors add_on_empty and add_on_blank methods 2015-02-19 14:10:38 +01:00
attribute_assignment_test.rb ✂️ and 💅 for #10776 2015-01-23 14:51:59 -07:00
attribute_methods_test.rb Completely remove potential global state leaks in ActiveModel tests. 2014-03-11 00:48:25 +08:00
callbacks_test.rb Deprecate false as the way to halt AM callbacks 2015-01-02 15:31:56 -08:00
conversion_test.rb [ci skip] add tests for ActionModel::Conversion 2014-06-11 23:18:47 +05:30
dirty_test.rb Remove unused "deprecated_reload" method 2015-01-11 12:32:26 -08:00
errors_test.rb Deprecate ActiveModel::Errors add_on_empty and add_on_blank methods 2015-02-19 14:10:38 +01:00
forbidden_attributes_protection_test.rb
helper.rb Default to sorting user's test cases for now 2014-09-08 05:32:16 -07:00
lint_test.rb
model_test.rb use attribute assignment module logic during active model initialization 2015-01-23 14:42:47 -08:00
naming_test.rb Delegate #model_name method to self.class 2014-06-22 19:14:25 -07:00
railtie_test.rb
secure_password_test.rb Allow password to contain spaces only. 2014-08-06 22:11:06 +03:00
serialization_test.rb
translation_test.rb Run ActiveModel test suites in random order. 2014-03-10 03:52:51 +08:00
validations_test.rb Move the validate! method to ActiveModel::Validations. 2015-02-20 16:05:26 -02:00