aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/deprecation/behaviors.rb
Commit message (Collapse)AuthorAgeFilesLines
* Change the empty block style to have space inside of the blockRafael Mendonça França2018-09-251-1/+1
|
* Raise a better exception when a invalid depreation behavior is setRafael Mendonça França2018-05-181-0/+4
| | | | Fixes #32928.
* Correct ActiveSupport::Deprecation::Behavior#behavior= documentationJohn Fragoulis2018-02-231-1/+1
| | | | | The callback parameters need to reflect changes after https://github.com/rails/rails/pull/28800
* [Active Support] require_relative => requireAkira Matsuda2017-10-211-2/+2
| | | | This basically reverts 8da30ad6be34339124ba4cb4e36aea260dda12bc
* [Active Support] `rubocop -a --only Layout/EmptyLineAfterMagicComment`Koichi ITO2017-07-111-0/+1
|
* Use frozen-string-literal in ActiveSupportKir Shatrov2017-07-091-0/+1
|
* [Active Support] require => require_relativeAkira Matsuda2017-07-011-2/+2
|
* Send deprecation horizon and gem name as arguments to deprecation heavier ↵Willem van Bergen2017-04-191-8/+21
| | | | handler, and make sure they are used for the ActiveSupport::Notifications message.
* modernizes hash syntax in activesupportXavier Noria2016-08-061-1/+1
|
* applies new string literal convention in activesupport/libXavier Noria2016-08-061-1/+1
| | | | | The current code base is not uniform. After some discussion, we have chosen to go with double quotes by default.
* `behaviour` --> `behavior`Jon Moss2016-05-271-1/+1
| | | | http://edgeguides.rubyonrails.org/api_documentation_guidelines.html#english
* Converting backtrace to strings before calling set_backtraceTony Novak2016-02-101-1/+1
| | | | Fixes #23058
* Fix nodoc to internal class error document some of themVipul A M2016-01-251-0/+2
| | | | | | | [ci skip] Fixes #20808 [Vipul A M & Julio Lopez]
* A few documentation tweaks [ci skip]Robin Dupret2015-06-071-3/+3
| | | | [Robin Dupret & Shunsuke Aida]
* [skip ci] Add documentation for Deprecation::Behavior moduleAnton Davydov2015-05-251-0/+12
|
* Do not check only for the Rails constantRafael Mendonça França2015-01-021-1/+1
| | | | | This constant may be define for auxiliar gems like rails-html-sanitizer and these methods call will fail.
* renames the :abort deprecation behaviour to :raiseXavier Noria2013-08-131-2/+2
| | | | That is a better name, thanks @jeremy.
* defines a new :abort deprecation behaviour that raisesXavier Noria2013-08-131-5/+18
| | | | See the CHANGELONG message in the patch for further details.
* Merge branch 'master' of github.com:lifo/docrailsVijay Dev2012-09-211-5/+5
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-6/+6
| |
* | Change ActiveSupport::Deprecation to class.Piotr Niełacny2012-09-131-48/+50
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-33/+31
|/ | | | | | | | | | extend/include it also. test local deprecation deprecator object Test ActiveSupport::Deprecation when included
* fix bad formatting [ci skip]Vijay Dev2012-05-171-2/+2
|
* copy edit AS deprecation/behaviours docs [ci skip]Vijay Dev2012-05-011-22/+11
|
* Merge branch 'master' of github.com:lifo/docrailsVijay Dev2012-05-011-1/+19
|\
| * Document ActiveSupport::Deprecations.behaviortwinturbo2012-04-291-1/+19
| |
* | Document #behavior= and update CHANGELOGtwinturbo2012-04-281-0/+7
| |
* | Add a "silence" behavior to completely turn off deprecation warnings.Adam Hawkins2012-04-281-2/+3
|/
* Remove Array.wrap calls in ActiveSupportRafael Mendonça França2012-01-061-2/+1
|
* using the active support loggerKarunakar (Ruby)2012-01-041-2/+2
|
* Changed a few instances of of words in the API docs written in British ↵Oemuer Oezkir2011-07-241-2/+2
| | | | | | English to American English(according to Weber)
* Improve documentation on ActiveSupport::Deprecation.Ryan Bigg2010-12-211-0/+7
|
* fix failure if behavior is not define and try use the defaultCyril Mougel2010-07-011-1/+1
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* Add the possibility to have several behaviors in AS::Deprecation.José Valim2010-07-011-1/+2
|
* Create a deprecation behavior that triggers a notification for deprecation ↵wycats2010-06-291-9/+12
| | | | | | | | | | | | | | | | | notices, and make the behaviors independent of the environment names. * In Rails 2.3 apps being upgraded, you will need to add the deprecation configuration to each of your environments. Failing to do so will result in the same behavior as Rails 2.3, but with an outputted warning to provide information on how to set up the setting. * New Rails 3 applications generate the setting * The notification style will send deprecation notices using ActiveSupport::Notifications. Third-party tools can listen in to these notifications to provide a streamlined view of the deprecation notices occurring in your app. * The payload in the notification is the deprecation warning itself as well as the callstack from the point that triggered the notification.
* Add subscriber for ActionPack and move all logging inside it.José Valim2010-01-131-1/+1
|
* Explicitly require loggerJeremy Kemper2009-10-141-1/+7
|
* Make logger work again (h/t Sam Ruby)Yehuda Katz2009-10-131-1/+1
|
* Dice up ActiveSupport::DeprecationJeremy Kemper2009-04-171-0/+32