On Apr 9, 9:06 pm, Matt Jankowski <[email protected]> wrote:
> It looks like a recent documentation commit finally removed references
> to this method...
>
> http://github.com/rails/rails/commit/c6372d604952a8eef16ce73a06814aa1...
>
> In lieu of having #proxy_options available, is there another method
> which replaces that functionality (access to a hash of all the options
> from a scope), or is it recommended to compare the to_sql output or
> use the == on Relation or something?
>

Does comparing the @where_values, @having_values, etc on the Relation
do the trick for you? That doesn't require a call to #to_sql, and
might be preferable since you'll be able to see more clearly what's
different about the structure of the relation object. Those values are
the definitive source regarding what's been built up by the chain and
what will eventually be generated by to_sql.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Core" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-core?hl=en.

Reply via email to