how to call a active record named scope with a string and Access named scope dynamically have information on how to choose a scope based on a string or symbol, if you're willing to use send
or public_send
. I'm rather concerned by the security implications of using those methods, however.
How can I choose a named scope without using send
or public_send
?