Robin Dupret
27eccc27cb
A few documentation tweaks [ci skip]
...
[Robin Dupret & Shunsuke Aida]
2015-06-07 14:53:24 +02:00
Zachary Scott
c0c90af41a
s/contstant/constant re #20282 [ci skip]
2015-05-24 10:52:04 -07:00
Anton Davydov
f671cbecf4
[skip ci] Add documentation for DeprecatedConstantProxy#class
2015-05-24 20:38:53 +03:00
Robin Dupret
a8aa8b7fc3
Tiny documentation edits [ci skip]
...
* Fix a few typos
* Wrap lines to 80 chars
* Use `+` instead of `<tt>`
2015-05-04 14:43:41 +02:00
Nick Cox
ea30e32998
[ci skip] Rework docs, add examples on deprecation proxies
2015-04-24 14:41:03 -07:00
Carlos Antonio da Silva
e8e2f010af
Fix typos in deprecation proxy docs [ci skip]
2013-04-30 19:25:05 -03:00
Claudio B.
e618adbcab
Update activesupport/lib/active_support/deprecation/proxy_wrappers.rb
...
Fix a typo in rdoc (*expect* for *except*)
2012-12-07 16:54:32 -08:00
Rafael Mendonça França
8692db59af
Copy-edit deprecation relared documentation [ci skip]
2012-09-13 14:02:18 -03:00
Piotr Niełacny
71993c6f97
Change ActiveSupport::Deprecation to class.
...
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.
2012-09-13 08:42:00 +02:00
Robert Pankowecki
2c690a0f5b
extend ActiveSupport::Deprecation with self, allow other objects to extend/include it also.
...
test local deprecation
deprecator object
Test ActiveSupport::Deprecation when included
2012-09-13 08:42:00 +02: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
Joost Baaij
80ae74dea7
Prevent any warnings from being printed during RDoc generation
2010-08-26 21:31:32 +02: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
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
727e9dc18a
Dice up ActiveSupport::Deprecation
2009-04-17 21:29:30 -07:00