changes from pluck to select and map to support rails version =< 3.1