aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test
diff options
context:
space:
mode:
authorDaniel Colson <danieljamescolson@gmail.com>2018-01-21 22:06:59 -0500
committerDaniel Colson <danieljamescolson@gmail.com>2018-01-21 22:06:59 -0500
commit00de46acf52868d4e0d9fdee58c823c599a275a1 (patch)
treebd18853b950c24bb5063065fa73830b98501e9f1 /activerecord/test
parenta19e91f0fab13cca61acdb1f33e27be2323b9786 (diff)
downloadrails-00de46acf52868d4e0d9fdee58c823c599a275a1.tar.gz
rails-00de46acf52868d4e0d9fdee58c823c599a275a1.tar.bz2
rails-00de46acf52868d4e0d9fdee58c823c599a275a1.zip
Use singular define_attribute_method
`define_attribute_methods` splats the arguments, then calls out to `define_attribute_method` for each. When defining a singule attribute, using the singular version of the method saves us an array and an extra method call.
Diffstat (limited to 'activerecord/test')
0 files changed, 0 insertions, 0 deletions