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
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
..
cases Turn on performance based cops 2018-07-23 15:37:06 -07:00
models has_secure_password: use recovery_password instead of activation_token 2018-07-08 14:12:27 +03:00
validators Use frozen string literal in activemodel/ 2017-07-16 20:11:16 +03:00