5
3
mirror of https://github.com/tildeverse/lobsters synced 2024-06-21 15:57:07 +00:00

fix for composing queries

This commit is contained in:
Peter Bhat Harkins 2018-04-25 11:02:53 -05:00
parent 294c58b415
commit 0ea3cedd9f

View File

@ -1,3 +1,6 @@
class ApplicationRecord < ActiveRecord::Base
self.abstract_class = true
# https://stackoverflow.com/questions/50026344/composing-activerecord-scopes-with-selects
scope :select_fix, -> { select(self.arel_table.project(Arel.star)) }
end