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
Dillon Welch d108288c2f
Turn on performance based cops
Use attr_reader/attr_writer instead of methods

method is 12% slower

Use flat_map over map.flatten(1)

flatten is 66% slower

Use hash[]= instead of hash.merge! with single arguments

merge! is 166% slower

See https://github.com/rails/rails/pull/32337 for more conversation
2018-07-23 15:37:06 -07:00
..
serializers Use frozen string literal in activemodel/ 2017-07-16 20:11:16 +03:00
type Fix user_input_in_time_zone to coerce non valid string into nil 2018-05-16 17:01:07 -04:00
validations Merge pull request #32956 from Shopify/i18n_activemodel_errors_full_message 2018-06-11 10:10:23 -04:00
attribute_assignment_test.rb Alias assign_attributes to attributes= for AttributeAssignment 2018-02-28 19:58:45 +09:00
attribute_methods_test.rb Use respond_to test helpers 2018-01-25 23:32:58 -05:00
attribute_set_test.rb PERF: Recover marshaling dump/load performance (#31827) 2018-02-02 07:52:33 +09:00
attribute_test.rb Use assert_predicate and assert_not_predicate 2018-01-25 23:32:59 -05:00
attributes_dirty_test.rb Replace assert ! with assert_not 2018-04-19 08:11:33 -04:00
attributes_test.rb Add ActiveModel::Attributes#attributes 2018-02-07 18:11:14 -05:00
callbacks_test.rb Use respond_to test helpers 2018-01-25 23:32:58 -05:00
conversion_test.rb Use frozen string literal in activemodel/ 2017-07-16 20:11:16 +03:00
dirty_test.rb Turn on performance based cops 2018-07-23 15:37:06 -07:00
errors_test.rb Ensure attribute is a symbol in the added? method 2018-07-14 13:19:46 -05:00
forbidden_attributes_protection_test.rb Use frozen string literal in activemodel/ 2017-07-16 20:11:16 +03:00
helper.rb Use frozen string literal in activemodel/ 2017-07-16 20:11:16 +03:00
lint_test.rb Use frozen string literal in activemodel/ 2017-07-16 20:11:16 +03:00
model_test.rb Use frozen string literal in activemodel/ 2017-07-16 20:11:16 +03:00
naming_test.rb Fix CustomCops/AssertNot to allow it to have failure message 2018-05-13 11:32:47 +09:00
railtie_test.rb Add global config for config.active_model.i18n_full_message 2018-06-05 13:25:24 -04:00
secure_password_test.rb has_secure_password: use recovery_password instead of activation_token 2018-07-08 14:12:27 +03:00
serialization_test.rb Merge pull request #28270 from mmangino/dont_ignore_seralization_options 2018-02-27 23:42:15 +09:00
translation_test.rb Use frozen string literal in activemodel/ 2017-07-16 20:11:16 +03:00
validations_test.rb Use assert_empty and assert_not_empty 2018-01-25 23:32:59 -05:00