Hi Walter,

This isn’t currently possible, though certainly it wouldn’t be hard to add that 
capability in, as you’ve noted. Right now I’m on the fence about whether I’d 
accept such a patch though - I like the idea of having one clear interface for 
such things (though I know I’ve not always followed that approach in the 
past!), and the only benefit I can think of at the moment is saving a few 
characters.

Are there other reasons around why this feature would be useful?

Cheers,

— 
Pat

> On 17 Mar 2019, at 6:34 am, Walter Lee Davis <[email protected]> wrote:
> 
> 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.

-- 
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.

Reply via email to