aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/test/configurable_test.rb
diff options
context:
space:
mode:
authorCarlos Antonio da Silva <carlosantoniodasilva@gmail.com>2012-03-03 02:10:39 -0300
committerCarlos Antonio da Silva <carlosantoniodasilva@gmail.com>2012-03-03 04:09:50 -0300
commit50725cec397d4fa0ecf1dda4e6ae845a993f1ba7 (patch)
tree1df6b55d3c55aecd72c23dd559f200956466128b /activesupport/test/configurable_test.rb
parenteafa58b566c770d5d5dc5706464ab4b67e453464 (diff)
downloadrails-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