Hi, I have been using named_scopes and works great!
but I need to get the sql conditions to send for my iReport =)
when I do
User.valid.proxy_options returns ok
but
User.valid.created_by('jonatas').proxy_options
returns just proxy_options from last named scope
if I put:
(User.valid.created_by('jonatas')).proxy_options
also returns just proxy_options from last named scope
Well in general in an activerecord method scope(:find) returns the
current scope for find operations, and it's no different here:
User.valid.created_by('jonatas')).scope(:find)