fixes the arel select statement to include info needed for edit form