aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/deprecation/reporting.rb
Commit message (Collapse)AuthorAgeFilesLines
* Fix deprecation message when frame doesn't have absolute_pathRafael Mendonça França2015-11-031-1/+1
| | | | | | When a frame is an eval block without filename argument there is no absolute_path so the previous implementation would fail because `nil` doesn't responds to `start_with?`.
* use `caller_locations` instead of `caller`Aaron Patterson2015-08-241-2/+13
| | | | | We have `caller_locations`, so we don't need to parse the strings in the callstack.
* Make caller attribute in deprecation methods optionalAlexey Gaziev2012-10-301-2/+5
|
* Merge branch 'master' of github.com:lifo/docrailsVijay Dev2012-09-211-3/+3
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: actionmailer/lib/action_mailer/base.rb activesupport/lib/active_support/configurable.rb activesupport/lib/active_support/core_ext/module/deprecation.rb guides/source/action_controller_overview.md guides/source/active_support_core_extensions.md guides/source/ajax_on_rails.textile guides/source/association_basics.textile guides/source/upgrading_ruby_on_rails.md While resolving conflicts, I have chosen to ignore changes done in docrails at some places - these will be most likely 1.9 hash syntax changes.
| * update AS/deprecation docs [ci skip]Francesco Rodriguez2012-09-141-3/+3
| |
* | warning removed: shadowing outer local variable - messageArun Agrawal2012-09-141-2/+2
| |
* | Copy-edit deprecation relared documentation [ci skip]Rafael Mendonça França2012-09-131-0/+1
| |
* | Change ActiveSupport::Deprecation to class.Piotr Niełacny2012-09-131-59/+76
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ActiveSupport::Deprecation is now a class rather than a module. You can get instance of ActiveSupport::Deprecation calling #instance method. ActiveSupport::Deprecation.instance But when you need to get new object od ActiveSupport::Deprecation you need to just call #new. @instance = ActiveSupport::Deprecation.new Since you can create a new object, you can change the version and the name of the library where the deprecator concerned. ActiveSupport::Deprecation.new('2.0', 'MyGem') If you need use another deprecator instance you can select it in the options of deprecate method. deprecate :method, :deprecator => deprecator_instance Documentation has been updated.
* | extend ActiveSupport::Deprecation with self, allow other objects to ↵Robert Pankowecki2012-09-131-59/+58
|/ | | | | | | | | | extend/include it also. test local deprecation deprecator object Test ActiveSupport::Deprecation when included
* fixes a few mistakes in api docs [ci skip]Vijay Dev2012-06-221-1/+1
|
* add example to AS::Deprecation#silence [ci skip]Francesco Rodriguez2012-06-171-1/+10
|
* minor changesVijay Dev2011-04-271-3/+1
|
* fixing whitespace errorsAaron Patterson2011-01-121-1/+1
|
* Improve documentation on ActiveSupport::Deprecation.Ryan Bigg2010-12-211-1/+7
|
* better callstack reporting in deprecation messagesJakub Suder2010-08-251-4/+8
| | | | | | | | | | now the reported line is the first line in the stack that's outside Rails, which is the one that actually caused the problem in the first place [#5231 state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com>
* Add the possibility to have several behaviors in AS::Deprecation.José Valim2010-07-011-2/+3
|
* Allow deprecation messages with or without a final period.Jeremy Kemper2010-03-051-1/+2
|
* Dice up ActiveSupport::DeprecationJeremy Kemper2009-04-171-0/+55