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