aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/deprecation.rb
Commit message (Collapse)AuthorAgeFilesLines
* Update default deprecation horizonYuji Yaginuma2018-01-311-1/+1
| | | | Because the master branch is already 6.0.
* [Active Support] require_relative => requireAkira Matsuda2017-10-211-7/+7
| | | | 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-7/+7
|
* Fix the next version of Rails from 5.3 to 6.0Koichi ITO2017-06-301-1/+1
|
* Send deprecation horizon and gem name as arguments to deprecation heavier ↵Willem van Bergen2017-04-191-1/+1
| | | | handler, and make sure they are used for the ActiveSupport::Notifications message.
* Add AS::Deprecation::DeprecatedConstantAccessorDominic Cleal2017-03-221-0/+1
| | | | | | | An alternative to DeprecatedConstantProxy which works more transparently with exceptions because it returns the object that the new constant refers to rather than a proxy. This is then compatible with `rescue OldException`.
* Start Rails 5.2 developmentMatthew Draper2017-03-221-1/+1
|
* applies new string literal convention in activesupport/libXavier Noria2016-08-061-8/+8
| | | | | The current code base is not uniform. After some discussion, we have chosen to go with double quotes by default.
* Bump the deprecation horizonRafael Mendonça França2016-05-101-1/+1
|
* Deprecation warning now targets at 5.1Akira Matsuda2015-12-191-1/+1
| | | | | Also, added a test case to make sure that the default deprecation horizon is always bigger than the current Rails version.
* Updated the deprecation warnings to 5.0Cristian Bica2014-08-201-1/+1
|
* Changing deprecation_horizon to be Rails 4.2wangjohn2013-08-241-1/+1
| | | | | Also, +ActiveRecord::Migrator.proper_table_name+ should actually have a deprecation horizon of Rails 4.2 (not 4.1).
* fix grammar, change 'an' to 'a' [ci skip]Prathamesh Sonpatki2013-06-271-3/+3
|
* explains why these requires are in an unusual placeXavier Noria2012-10-071-0/+8
|
* Fix warning: circular require considered harmful.kennyj2012-10-031-6/+7
|
* Copy-edit deprecation relared documentation [ci skip]Rafael Mendonça França2012-09-131-8/+2
|
* Change ActiveSupport::Deprecation to class.Piotr Niełacny2012-09-131-9/+30
| | | | | | | | | | | | | | | | | | | | | | | | 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-1/+1
| | | | | | | | | | extend/include it also. test local deprecation deprecator object Test ActiveSupport::Deprecation when included
* bump AS deprecation_horizon to 4.1Francesco Rodríguez2012-06-171-2/+2
|
* revises requires of some AS deprecation filesXavier Noria2012-04-051-0/+1
|
* bump AS deprecation_horizon to 3.2Josh Kalderimis2011-04-251-1/+1
|
* Implement deprecated version of AssociationReflection#primary_key_name, ↵Jon Leighton2011-01-031-1/+1
| | | | which has been renamed to #foreign_key. Also bumping the deprecation_horizon in Active Support to 3.1.
* Improve documentation on ActiveSupport::Deprecation.Ryan Bigg2010-12-211-1/+1
|
* Dice up ActiveSupport::DeprecationJeremy Kemper2009-04-171-185/+9
|
* Remove unnecessary use of Kernel#silence_warningsJeremy Kemper2009-03-241-3/+1
|
* Inline code comments for class_eval/module_eval [#1657 state:resolved]Xavier Noria2008-12-281-4/+9
| | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Properly parenthasize calls to defined?(Rails) in 75fa82418 [#1563 ↵Frederick Cheung2008-12-151-1/+1
| | | | | | state:resolved] Signed-off-by: Joshua Peek <josh@joshpeek.com>
* Prefer Rails.logger over RAILS_DEFAULT_LOGGERJoshua Peek2008-12-101-1/+1
|
* Move deprecation assertions so TestCase (and Mocha) needn't load on startupJeremy Kemper2008-11-231-59/+0
|
* Remove direct TestCase mixins. Add miniunit compatibility.Jeremy Kemper2008-11-071-13/+20
|
* Update the default deprecation message to not promise that theres more info ↵David Heinemeier Hansson2008-10-301-2/+2
| | | | at the Rails site [#776 state:resolved]
* Deprecate render_component.Pratik Naik2008-08-291-1/+1
| | | | | Please install render_component plugin from http://github.com/rails/render_component/tree/master if your application uses this functionality.
* Deprecated implicit local assignments when rendering partialsJoshua Peek2008-08-281-0/+16
|
* Pass class through to DeprecatedConstantProxy targetTarmo Tänav2008-08-231-0/+4
| | | | | | | This is needed because include_all_modules_from checks calls "class" on every constant and sometimes it can hit deprecated constants which aren't even Modules, but while checking for it deprecation warnings are shown.
* remove DeprecatedConstantToMethodProxy againSven Fuchs2008-06-221-17/+0
|
* experimental DeprecatedConstantToMethodProxySven Fuchs2008-06-211-0/+17
|
* Namespace Inflector, Dependencies, OrderedOptions, and TimeZone under ↵Joshua Peek2008-06-031-7/+25
| | | | ActiveSupport [#238 state:resolved]
* Merge docrails.Pratik Naik2008-05-251-2/+2
| | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Remove unnecessary DeprecatedInstanceVariable classPratik Naik2008-05-131-17/+0
|
* Ruby 1.9 compat: define __setobj__ for DelegatorJeremy Kemper2008-05-121-2/+6
|
* Add class to deprecate instance variablesPratik Naik2008-05-061-0/+14
| | | | | Add ActiveSupport::Deprecation::DeprecatedInstanceVariable class to deprecate instance variables of primitive types such as stings.
* Some 1.9 forward compatibilityJeremy Kemper2007-09-141-1/+3
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7474 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Refactored in use of extract_options! (closes #9079) [josh]David Heinemeier Hansson2007-07-241-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7220 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Deprecation: warn on stderr if RAILS_DEFAULT_LOGGER isn't set yet.Jeremy Kemper2007-02-081-2/+3
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6140 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Nodoc the irrelevant (from 1.2)David Heinemeier Hansson2007-01-261-4/+4
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6044 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* DeprecatedInstanceVariable#inspect doesn't warn since test/unit, error logs, ↵Jeremy Kemper2006-12-201-1/+8
| | | | | | and others use it for diagnostics. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5763 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Don't require test/unit since it tries to turn everything into a test run.Jeremy Kemper2006-12-181-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5740 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Deprecation: silence warnings when reporting test errors.Jeremy Kemper2006-12-171-0/+13
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5728 5ecf4fe2-1ee6-0310-87b1-e25e094e27de