Commit Graph

32 Commits

Author SHA1 Message Date
Vijay Dev
4ceac1a7cc copy edit AS deprecation/behaviours docs [ci skip] 2012-05-01 19:14:42 +05:30
Vijay Dev
42ff22f33a Merge branch 'master' of github.com:lifo/docrails 2012-05-01 19:06:03 +05:30
twinturbo
110f3f458a Document ActiveSupport::Deprecations.behavior 2012-04-29 10:49:21 -07:00
twinturbo
9608395923 Document #behavior= and update CHANGELOG 2012-04-28 13:40:30 -03:00
Adam Hawkins
76cd1ca08d Add a "silence" behavior to completely turn off deprecation warnings. 2012-04-28 13:40:30 -03:00
Xavier Noria
29089bf6fa revises requires of some AS deprecation files 2012-04-05 14:33:47 -07:00
Carlos Antonio da Silva
b1e55041eb Remove not used require from as to avoid circular requires 2012-04-05 14:48:01 -03:00
Rafael Mendonça França
b33bd077fa Remove Array.wrap calls in ActiveSupport 2012-01-06 01:04:33 -03:00
Karunakar (Ruby)
a19f8b5ca0 using the active support logger 2012-01-04 22:12:25 +05:30
Oemuer Oezkir
71d18ce48e Changed a few instances of of words in the API docs written in British English to
American English(according to Weber)
2011-07-24 10:21:42 +00:00
Vijay Dev
f76dd271c6 minor changes 2011-04-27 19:50:51 +05:30
Aaron Patterson
f2beb56c8b fixing whitespace errors 2011-01-12 18:07:53 -08:00
Josh Kalderimis
de18b85969 In AS, only inflector/methods is need in proxy_wrappers.rb, as well as date, date_time, and time conversions.rb. This fixes an issue when requiring json and AS saying that i18n is also required.
Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
2011-01-12 12:37:01 -02:00
Ryan Bigg
1cacb08b21 Improve documentation on ActiveSupport::Deprecation. 2010-12-21 10:40:15 +10:00
Joost Baaij
80ae74dea7 Prevent any warnings from being printed during RDoc generation 2010-08-26 21:31:32 +02:00
Jakub Suder
4f945e97e5 better callstack reporting in deprecation messages
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>
2010-08-25 07:23:50 -03:00
Aaron Patterson
32844cbc02 fixing space errors 2010-07-26 09:58:35 -07:00
Leigh Caplan
e56c9ef08d Override new on proxy objects so that they never wrap nil or false. 2010-07-26 09:53:42 -07:00
Cyril Mougel
9024545a6b fix failure if behavior is not define and try use the default
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-07-01 12:17:21 +02:00
José Valim
e596a8e14c Add the possibility to have several behaviors in AS::Deprecation. 2010-07-01 10:26:45 +02:00
wycats
d4c7d3fd94 Create a deprecation behavior that triggers a notification for deprecation 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.
2010-06-29 12:20:15 -07:00
Jeremy Kemper
8fc97d198e Allow deprecation messages with or without a final period. 2010-03-05 12:35:42 -08:00
Jeremy Kemper
6b12d74026 Commented metaprogramming turned out to be noisier not clearer 2010-02-25 09:28:18 -08:00
José Valim
da5978c223 Add subscriber for ActionPack and move all logging inside it. 2010-01-13 01:19:23 +01:00
Xavier Noria
e7c08c1e29 method_wrappers.rb needs active_support/core_ext/array/extract_options 2010-01-01 14:28:56 -08:00
Jeremy Kemper
a9f9ae385e Explicitly require logger 2009-10-14 18:03:07 -07:00
Yehuda Katz
9cd50e7752 Make logger work again (h/t Sam Ruby) 2009-10-13 10:43:28 -07:00
Michael Siebert
d811864e88 Fix deprecating =-methods by using send [#2431 status:resolved]
Signed-off-by: José Valim <jose.valim@gmail.com>
2009-08-09 15:54:56 +01:00
Jeremy Kemper
ea712364e2 Don't undefine object_id 2009-04-26 15:56:08 -07:00
Jeremy Kemper
f28bd9557c Fix dependencies revealed by testing in isolation 2009-04-22 18:54:13 -07:00
Jeremy Kemper
685a53a360 Merge branch 'master' into cherry
Conflicts:
	activesupport/CHANGELOG
	activesupport/lib/active_support/core_ext/class/delegating_attributes.rb
	activesupport/lib/active_support/core_ext/hash/conversions.rb
	activesupport/lib/active_support/core_ext/module/attribute_accessors.rb
	activesupport/lib/active_support/core_ext/string/multibyte.rb
	activesupport/lib/active_support/core_ext/time/calculations.rb
	activesupport/lib/active_support/deprecation.rb
2009-04-20 18:31:40 -07:00
Jeremy Kemper
727e9dc18a Dice up ActiveSupport::Deprecation 2009-04-17 21:29:30 -07:00