aboutsummaryrefslogtreecommitdiffstats
path: root/Gemfile
diff options
context:
space:
mode:
authorCarlos Antonio da Silva <carlosantoniodasilva@gmail.com>2012-06-25 14:24:46 -0300
committerCarlos Antonio da Silva <carlosantoniodasilva@gmail.com>2012-06-26 22:21:18 -0300
commit0ee6aa749cde21dad0e5f394a7feb3173f357d2f (patch)
tree81105a9a27084b1a759a65f98e0d1766a89d4cd6 /Gemfile
parent60571b853920707c1103c5f9659e7b690d8eae73 (diff)
downloadrails-0ee6aa749cde21dad0e5f394a7feb3173f357d2f.tar.gz
rails-0ee6aa749cde21dad0e5f394a7feb3173f357d2f.tar.bz2
rails-0ee6aa749cde21dad0e5f394a7feb3173f357d2f.zip
Set hash value instead of merge a single key, and use flatten! if possible
There's no need to create two extra hashes with options.merge(another_hash), with the goal of setting only one value, so lets just set it. Also refactor validates_each to use _merge_attributes, like other validates_* helpers do.
Diffstat (limited to 'Gemfile')
0 files changed, 0 insertions, 0 deletions