diff options
author | Eugene Gilburg <eugene.gilburg@gmail.com> | 2013-07-31 22:20:19 -0700 |
---|---|---|
committer | Eugene Gilburg <eugene.gilburg@gmail.com> | 2013-07-31 22:20:19 -0700 |
commit | 1e583f81d209ef097e040a6a7f2145ab717153b6 (patch) | |
tree | 620e4a036da4f0001083ba6d03374c698c87f772 /guides/rails_guides | |
parent | 5704e3c41dbec0e22483ac1704cfe14e22be98ba (diff) | |
download | rails-1e583f81d209ef097e040a6a7f2145ab717153b6.tar.gz rails-1e583f81d209ef097e040a6a7f2145ab717153b6.tar.bz2 rails-1e583f81d209ef097e040a6a7f2145ab717153b6.zip |
Minor optimization and code cleanup in query_methods.
- Use symbols rather than strings where possible to avoid extra object construction
- Use destructive methods where possible to avoid extra object construction
- Use array union rather than concat followed by uniq
- Use shorthand block syntax where possible
- Use consistent multiline block styles, method names, method parenteses style, and spacing
Diffstat (limited to 'guides/rails_guides')
0 files changed, 0 insertions, 0 deletions