diff options
author | Daniel Colson <danieljamescolson@gmail.com> | 2018-01-21 22:06:59 -0500 |
---|---|---|
committer | Daniel Colson <danieljamescolson@gmail.com> | 2018-01-21 22:06:59 -0500 |
commit | 00de46acf52868d4e0d9fdee58c823c599a275a1 (patch) | |
tree | bd18853b950c24bb5063065fa73830b98501e9f1 /activerecord/test/models/guitar.rb | |
parent | a19e91f0fab13cca61acdb1f33e27be2323b9786 (diff) | |
download | rails-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/models/guitar.rb')
0 files changed, 0 insertions, 0 deletions