diff options
author | Carlos Antonio da Silva <carlosantoniodasilva@gmail.com> | 2012-03-03 02:10:39 -0300 |
---|---|---|
committer | Carlos Antonio da Silva <carlosantoniodasilva@gmail.com> | 2012-03-03 04:09:50 -0300 |
commit | 50725cec397d4fa0ecf1dda4e6ae845a993f1ba7 (patch) | |
tree | 1df6b55d3c55aecd72c23dd559f200956466128b /activesupport/test/configurable_test.rb | |
parent | eafa58b566c770d5d5dc5706464ab4b67e453464 (diff) | |
download | rails-50725cec397d4fa0ecf1dda4e6ae845a993f1ba7.tar.gz rails-50725cec397d4fa0ecf1dda4e6ae845a993f1ba7.tar.bz2 rails-50725cec397d4fa0ecf1dda4e6ae845a993f1ba7.zip |
Refactor and cleanup in some ActiveRecord modules
* Avoid double hash lookups in AR::Reflection when reflecting associations/aggregations
* Minor cleanups: use elsif, do..end, if..else instead of unless..else
* Simplify DynamicMatchers#respond_to?
* Use "where" instead of scoped with conditions hash
* Extract `scoped_by` method pattern regexp to constant
* Extract noisy class_eval from method_missing in dynamic matchers
* Extract readonly check, avoid calling column#to_s twice in persistence
* Refactor predicate builder, remove some variables
Diffstat (limited to 'activesupport/test/configurable_test.rb')
0 files changed, 0 insertions, 0 deletions