Piers Cawley <[EMAIL PROTECTED]> writes:

> I'm posting this here because I can't get it posted to the trac.
>
> ActiveRecord::Calculations#construct_count_options_from_legacy_args
> raises a deprecation warning. The only trouble is, it's only ever
> called from ActiveRecord::Calculations::count, so it repeatedly tells
> me I've called the offending deprecated function from within rails
> itself. 

Further to this, the deprecation warning in 'image_path' has similar
problems; it's not always called directly, sometimes it gets called
via image_tag, so again the deprecation warning isn't necessarily
useful. This isn't something that can be easily fixed by just adding
an extra argument to the call to Deprecation#warn though. 

I ended up just throwing an exception to find my guilty code. And that
proved interesting too; I got a scad of deprecation warnings about
using @session and @params being called from
vendor/rails/actionpack/lib/action_view/template_error.rb:51, which is
weird because there's no reference to either of those variables at
that point. 

-- 
Piers Cawley <[EMAIL PROTECTED]>
http://www.bofh.org.uk/

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to