|
Re: [BUG] Useless deprecation warning in ActiveRecord::Calculations: msg#00249lang.ruby.rails.core
Piers Cawley <pdcawley@xxxxxxxxxxx> 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 <pdcawley@xxxxxxxxxxx> 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 rubyonrails-core@xxxxxxxxxxxxxxxx To unsubscribe from this group, send email to rubyonrails-core-unsubscribe@xxxxxxxxxxxxxxxx For more options, visit this group at http://groups.google.com/group/rubyonrails-core -~----------~----~----~----~------~----~------~--~---
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | [BUG] Useless deprecation warning in ActiveRecord::Calculations, Piers Cawley |
|---|---|
| Next by Date: | [BUG] send_file header strangeness, Piers Cawley |
| Previous by Thread: | [BUG] Useless deprecation warning in ActiveRecord::Calculations, Piers Cawley |
| Next by Thread: | [BUG] send_file header strangeness, Piers Cawley |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |