Solution for: #93: inspecting the state of a named_scope
proxy_options
- kueda on May 10, 2010, 09:22 PM UTC
>> scope = YourModel.scoped({})
>> scope = scope.some_scope(some_arg)
>> scope.proxy_options[:joins]
=> "INNER JOIN piffles on piffles.your_model_id = your_models.id"