select(*fields)
Instance Public methods
Works in two unique ways.
First: takes a block so it can be used just like Array#select.
Model.all.select { |m| m.field == value }
This will build an array of objects from the database for the scope,
converting them into an array and iterating through them using
Array#select.
Second: Modifies the SELECT statement for the query so that only certain
fields are retrieved:
Model.select(:field)
# => [#<Model field:value>]
Although in th