assemblymade/coderwall — pull request #255 by codebender (2014-12-02 05:10:50+00:00)
Title: ActiveRecord & ruby optimizations

[AR & Ruby Optimizations - Bounty 435](https://assembly.com/coderwall/bounties/435)
---
- select(:foo).map(:foo) -> pluck(:foo)
- select(:foo).collect(:foo) -> pluck(:foo)
- map { |foo| foo.bar } -> map(&:bar)
- map { … }.flatten -> flat_map { … }
- collect { … }.flatten -> flat_map { … }
- gsub() -> sub()
- gsub() -> tr()