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:
parent
294c58b415
commit
0ea3cedd9f
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user