aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/RUNNING_UNIT_TESTS.rdoc
diff options
context:
space:
mode:
authorCarlos Antonio da Silva <carlosantoniodasilva@gmail.com>2014-03-04 08:21:32 -0300
committerCarlos Antonio da Silva <carlosantoniodasilva@gmail.com>2014-03-04 08:23:00 -0300
commit8b1ccd5949395530296daf3c0d620a8106e9ac4b (patch)
treed21fecaf42f046282624fcab80aa5c4ee2d22c0f /activerecord/RUNNING_UNIT_TESTS.rdoc
parentecda6dfbdcd3103699465e846deaaf7feb3e9916 (diff)
downloadrails-8b1ccd5949395530296daf3c0d620a8106e9ac4b.tar.gz
rails-8b1ccd5949395530296daf3c0d620a8106e9ac4b.tar.bz2
rails-8b1ccd5949395530296daf3c0d620a8106e9ac4b.zip
Simplify handling of defaults/options in button_tag
There's no need to rely on Active Support's Hash#reverse_merge for simple cases with default values, since we can just merge from the default rather than reverse merge from the options. This also avoids the creation of one extra hash object by moving to a Hash#merge! call.
Diffstat (limited to 'activerecord/RUNNING_UNIT_TESTS.rdoc')
0 files changed, 0 insertions, 0 deletions