Would it be possible to allow the scope method in real time indexing to accept
the name of a scope on the indexed model? I'd like to be able to use
scope :published
rather than
scope { Speech.published }
I got an error indicating that scope expects a block (1 variable rather than 0
passed) so it occurs to me that it may be possible to wrap the current behavior
in if block_given? and then drop back to
the_inferred_model.call scope_argument
or [whatever actually works with models and scopes and isn't `send`]
Any thoughts about this?
Thanks,
Walter
--
You received this message because you are subscribed to the Google Groups
"Thinking Sphinx" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/thinking-sphinx.
For more options, visit https://groups.google.com/d/optout.