aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/core_ext/module/aliasing.rb
Commit message (Collapse)AuthorAgeFilesLines
* [Active Support] `rubocop -a --only Layout/EmptyLineAfterMagicComment`Koichi ITO2017-07-111-0/+1
|
* Use frozen-string-literal in ActiveSupportKir Shatrov2017-07-091-0/+1
|
* Revert "Merge pull request #29540 from kirs/rubocop-frozen-string"Matthew Draper2017-07-021-1/+0
| | | | | This reverts commit 3420a14590c0e6915d8b6c242887f74adb4120f9, reversing changes made to afb66a5a598ce4ac74ad84b125a5abf046dcf5aa.
* Enforce frozen string in RubocopKir Shatrov2017-07-011-0/+1
|
* Remove deprecated method alias_method_chainAndrew White2016-11-141-48/+0
|
* damn typos [ci skip]Xavier Noria2016-08-081-1/+1
|
* explain why aliasing uses explicit selfs [ci skip]Xavier Noria2016-08-081-0/+3
|
* applies new string literal convention in activesupport/libXavier Noria2016-08-061-1/+1
| | | | | The current code base is not uniform. After some discussion, we have chosen to go with double quotes by default.
* Clearify that alias_method_chain is deprecatedPrem Sichanugrist2015-04-221-0/+3
| | | | | This was not clear on the API documentation that the method was deprecated in a982a42d766169c2170d7f100c2a5ceb5430efb1.
* [ci skip] Replace `query methods` with `a predicate`yui-knk2015-03-311-1/+1
|
* Remove circular requireRafael Mendonça França2015-03-271-2/+0
|
* Missing require 'active_support/deprecation'Akira Matsuda2015-03-271-0/+2
|
* Deprecate alias_method_chain in favour of Module#prependKir Shatrov2015-03-221-0/+2
| | | …as discussed #19413
* doc added for `writer` method in `alias_method_chain`[ci skip]Kuldeep Aggarwal2014-10-041-2/+2
|
* removing unnecessary 'examples' noise from activesupportFrancesco Rodriguez2012-05-131-2/+0
|
* AS core_ext refactoring pt.2Alexey Gaziev2012-04-291-7/+8
|
* fix stack trace lines on class_evalSantiago Pastorino2010-04-091-1/+1
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* Convert Module aliasing and introspection extension modules to class reopenJeremy Kemper2009-03-281-68/+64
|
* Inline code comments for class_eval/module_eval [#1657 state:resolved]Xavier Noria2008-12-281-3/+3
| | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Move some core extension methods into a module under the ↵Hongli Lai (Phusion)2008-08-291-67/+71
| | | | | | | | ActiveSupport::CoreExtensions namespace, instead of extending core classes directly. This is more friendly for API reference generators. [#915 state:resolved] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* Fix incorrect superclass in documentation for alias_attribute. Closes #7171 ↵Marcel Molina2007-12-051-1/+1
| | | | | | [tzaharia] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8312 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Let alias_attribute work with attributes with initial capital letters ↵Michael Koziarski2007-07-191-2/+2
| | | | | | (legacy columns etc). Closes #8596 [mpalmer] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7195 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* alias_method_chain preserves the original method's visibility. Closes #7854.Jeremy Kemper2007-03-181-2/+14
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6441 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* alias_method_chain yields method target and punctuation to simplify wrapper ↵Jeremy Kemper2006-09-151-0/+1
| | | | | | method definition. Used by the deprecate module method. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5113 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* alias_method_chain works with accessor= methods also. Closes #6153.Jeremy Kemper2006-09-121-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5091 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added Module#alias_attribute [Jamis/DHH]David Heinemeier Hansson2006-08-031-0/+27
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4653 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Typo in alias_method_chain rdoc.Jeremy Kemper2006-07-031-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4534 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* alias_method_chain preserves method punctuation so foo, foo?, and foo! may ↵Jeremy Kemper2006-06-211-3/+14
| | | | | | be chained with the same feature. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4482 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Rolled back broken aliasingDavid Heinemeier Hansson2006-06-031-10/+4
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4430 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed that Module#alias_method_chain should work with both foo? foo! and foo ↵David Heinemeier Hansson2006-06-031-4/+10
| | | | | | at the same time (closes #4954) [anna@wota.jp] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4429 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Strip out punctuation on predicates or bang methods being aliased with ↵Marcel Molina2006-04-291-2/+5
| | | | | | alias_method_chain since target?_without_feature is not a valid method name. Add tests for Module#alias_method_chain. [Marcel Molina Jr.] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4311 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added Module#alias_method_chainJamis Buck2006-04-261-0/+16
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4276 5ecf4fe2-1ee6-0310-87b1-e25e094e27de