Note that `.all` is deprecated. You want `RecordSection.includes(...).to_a`

http://stackoverflow.com/questions/18203712/rails-4-relationall-deprecation