Move searchkick call out of scope to avoid warning
*DEPRECATION WARNING: Class level methods will no longer inherit scoping from search_by_query
in Rails 6.1. To continue using the scoped relation, pass it into the block directly. To instead access the full set of models, as Rails 6.1 will, use Ambition.default_scoped
. (called from block (2 levels) in module:AmbitionSuperFilter at /home/prilop/code/workOS/app/models/concerns/ambition_super_filter.rb:28)