search for: proxy_options

Displaying 1 result from an estimated 1 matches for "proxy_options".

2010 Nov 03
0
Accessing (updating?) the proxy_scope chain for named_scope (Rails 2.3.x)
...(its an example only, not the actual use case ). And potentially ''adjust'' it. #scoped_methods isn''t it - that''s populated only when in with_scope. Question 1: How can I access to the current proxy chain from within a named_scope? Question 2: Can I modify the proxy_options (shudder I know) without some serious monkey patching? Yes, I realise I could add parameters to these lambdas, but its not very DRY to be passing in the same parameter to several methods in the chain either. Note I can''t always predict in advance what the scope chain will be - it can be...