You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jul 11, 2023. It is now read-only.
class Project < ActiveRecord::Base
include Flex::ModelIndexer
flex.sync self
def flex_source
{ :name => name }
end
module Flex
include Flex::Scopes
flex.context = Project
scope :search_by_name, ->(name) { terms(name: name) }
end
end
This throws NameError: uninitialized constant Project::Flex::Scopes on server start. I had to do