aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/core_ext/module
Commit message (Collapse)AuthorAgeFilesLines
* AS core_ext refactoring pt.2Alexey Gaziev2012-04-295-13/+14
|
* Remove Module#delegate!Daniel Schierbeck2012-04-121-52/+0
|
* Add back the old `deprecate` method as `deprecate!`Daniel Schierbeck2012-04-121-0/+52
|
* Change API docs regarding delegation to non-public methodsDaniel Schierbeck2012-04-121-1/+1
|
* Optimize the performance of #delegateDaniel Schierbeck2012-04-121-9/+13
| | | | | | Remove the use of #__send__ in order to boost performance. This also means that you can no longer delegate to private methods on the target object.
* revises requires of some AS deprecation filesXavier Noria2012-04-051-1/+1
|
* Merge pull request #3084 from esad/masterXavier Noria2012-04-051-0/+2
|\ | | | | Dependency fix for activesupport
| * Add a missing require for 'active_support/deprecation' in Module#deprecateEsad Hajdarevic2011-09-201-0/+2
| |
* | use undef_method to avoid NameError exceptions all the timeAaron Patterson2012-03-311-5/+1
| |
* | validate attribute names in class and module attribute accessorsDmitry Plashchynski2012-03-301-0/+2
| |
* | Remove deprecation from AS::Deprecation behavior, some minor cleanupsCarlos Antonio da Silva2012-03-161-7/+9
| | | | | | | | | | | | | | | | | | * Refactor log subscriber, use select! to avoid a new object * Remove deprecation messages related to AS::Deprecation behavior This was added about 2 years ago for Rails 3: https://github.com/rails/rails/commit/d4c7d3fd94e5a885a6366eaeb3b908bb58ffd4db * Remove some not used requires * Refactor delegate to avoid string conversions and if statements inside each block
* | Fix indentation in code example of DelegationTomasz Zurkowski2012-01-201-19/+19
| |
* | deprecates Module#local_constant_namesXavier Noria2012-01-121-2/+12
| |
* | removes the compatibility method Module#method_namesXavier Noria2011-12-251-5/+0
| |
* | removes the compatibility method Module#instance_method_namesXavier Noria2011-12-251-4/+0
| |
* | ruby 1.9 returns method names as symbolsSergey Nartimov2011-12-251-11/+6
| |
* | Module#name returns nil for anonymous class in ruby 1.9Vasiliy Ermolovich2011-12-251-6/+2
| |
* | remove deprecated Module#synchronize from ActiveSupportSergey Nartimov2011-12-241-45/+0
| |
* | Remove more dead code from AS.José Valim2011-12-201-18/+6
| |
* | Initial pass at removing dead 1.8.x code from Active Support.José Valim2011-12-201-21/+2
| | | | | | | | | | | | There are a bunch of other implicit branches that adds 1.8.x specific code that still needs to be removed. Pull requests for those cases are welcome.
* | Module#synchronize is deprecated with no replacement. Please use `monitor` ↵Aaron Patterson2011-11-291-0/+2
| | | | | | | | from ruby's standard library.
* | defines Module#qualified_const_(defined?|get|set) and String#deconstantizeXavier Noria2011-10-291-0/+64
| | | | | | | | | | | | | | | | | | | | This commit also implements a faster version of #demodulize I was unable to isolate with git add --patch. Not a big fan of the name #deconstantize. It complements #demodulize getting rid of the rightmost constant, hence the name, but it is unrelated to the well-known #constantize. So unsure. Could not come with anything better, please feel free to rename.
* | Use safe_constantize where possible.José Valim2011-09-231-3/+1
|/
* Revert all the stuff to do with disallowing non-public methods for ↵Jon Leighton2011-08-251-6/+2
| | | | Module#delegate
* prefer ends_with? over slicingXavier Noria2011-08-161-1/+2
|
* Add a test for delegating a method ending in '=' as this is a special case.Jon Leighton2011-08-151-0/+1
|
* Need to include public_sendArun Agrawal2011-08-151-0/+1
|
* Split up the definitions in Module#delegate depending on :allow_nil, and ↵Jon Leighton2011-08-151-17/+22
| | | | don't use exceptions for flow control in the :allow_nil => true case.
* Fix the line number in the backtrace when Module#delegate raisesJon Leighton2011-08-151-1/+1
|
* Just do the method call directly in Module#delegate, if we can (we cannot ↵Jon Leighton2011-08-151-1/+4
| | | | for method names ending in '='). Two reasons: 1) it's faster, see https://gist.github.com/1089783 and 2) more importantly, delegate should not allow you to accidentally call private or protected methods.
* Refactored to more closely resemble idiom applied for on_nilEvan Light2011-08-051-5/+11
|
* Remove unnecessary require (happened after fcbde454f6)Dmitriy Kiriyenko2011-08-011-2/+0
|
* remove_possible_method: test if method existsBrad Ediger2011-07-311-2/+7
| | | | | | | This speeds up remove_possible_method substantially since it doesn't have to rescue a NameError in the common case. Closes #2346.
* Don't do remove_possible_method when delegate is used. Two reasons: 1) ↵Jon Leighton2011-07-181-4/+0
| | | | warnings should be shown, and fixed at the source and 2) the code is slow. Fixes #1937.
* Added instance_accessor: false to Module#mattr_accessorVijay Dev2011-06-141-2/+6
|
* Simplify boolean logic into ternary.Ben Orenstein2011-06-081-1/+1
|
* Removed deprecated methods and related tests from ActiveSupportJosh Kalderimis2011-05-251-31/+0
|
* Deprecate attr_accessor_with_default.José Valim2011-05-161-0/+1
|
* Remove a circular require in AS deprecations. This is safe as AS ↵Josh Kalderimis2011-05-121-2/+0
| | | | deprecations is autoloaded as needed.
* adds a couple of missing AS dependenciesRolf Timmermans2011-03-121-0/+2
|
* Improve clarity of example. Make it follow guidelines for output display.Ben Orenstein2011-02-191-5/+5
|
* Don't depend on rubygems loading thread (for Mutex)raggi2010-11-251-0/+1
|
* Use native attr_* macros for performance reasons.thedarkone2010-09-271-6/+13
|
* Fix 'warning: method redefined' [#5551 state:resolved]Krekoten' Marjan2010-09-251-4/+4
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* attr_accessor_with_default should raise an ArgumentError not a RuntimeErrorAaron Patterson2010-09-241-3/+2
|
* delegate method should treat :prefix => false same as :prefix => nilNeeraj Singh2010-09-011-1/+1
| | | | | | [#5375 state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com>
* Deletes trailing whitespaces (over text files only find * -type f -exec sed ↵Santiago Pastorino2010-08-145-7/+7
| | | | 's/[ \t]*$//' -i {} \;)
* Introduced redefine_methodŁukasz Strzałkowski2010-07-191-0/+5
|
* It's not needed to initialize the attr when calling mattr_writerSantiago Pastorino2010-07-181-7/+1
|
* refactor evals and adds some __FILE__ and __LINE__Santiago Pastorino2010-05-201-2/+2
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>