Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
def build_select(arel, selects)
unless selects.empty?
@implicit_readonly = false
arel.project(*selects)
else
arel.project(@klass.arel_table[Arel.star])
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment