aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/core_ext/module.rb
Commit message (Collapse)AuthorAgeFilesLines
* Remove deprecated `Module#reachable?` methodRafael Mendonça França2019-01-171-1/+0
|
* [Active Support] require_relative => requireAkira Matsuda2017-10-211-12/+12
| | | | This basically reverts 8da30ad6be34339124ba4cb4e36aea260dda12bc
* Clarify intentions around method redefinitionsMatthew Draper2017-09-011-0/+1
| | | | | | | | | Don't use remove_method or remove_possible_method just before a new definition: at best the purpose is unclear, and at worst it creates a race condition. Instead, prefer redefine_method when practical, and silence_redefinition_of_method otherwise.
* [Active Support] `rubocop -a --only Layout/EmptyLineAfterMagicComment`Koichi ITO2017-07-111-0/+1
|
* Use frozen-string-literal in ActiveSupportKir Shatrov2017-07-091-0/+1
|
* [Active Support] require => require_relativeAkira Matsuda2017-07-011-11/+11
|
* Remove deprecated Module.qualified_const_get/set/defined?Andrew White2016-11-141-1/+0
|
* applies new string literal convention in activesupport/libXavier Noria2016-08-061-12/+12
| | | | | The current code base is not uniform. After some discussion, we have chosen to go with double quotes by default.
* Add thread_m/cattr_accessor/reader/writer suite of methods for declaring ↵David Heinemeier Hansson2015-12-171-0/+1
| | | | class and module variables that live per-thread
* Introduce Module#concerningJeremy Kemper2013-12-171-0/+1
| | | | | | A natural, low-ceremony way to separate responsibilities within a class. Imported from https://github.com/37signals/concerning#readme
* removes the compatibility method Module#method_namesXavier Noria2011-12-251-1/+0
|
* remove deprecated Module#synchronize from ActiveSupportSergey Nartimov2011-12-241-2/+1
|
* defines Module#qualified_const_(defined?|get|set) and String#deconstantizeXavier Noria2011-10-291-1/+2
| | | | | | | | | | 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.
* Removed deprecated methods and related tests from ActiveSupportJosh Kalderimis2011-05-251-1/+0
|
* Remove some 1.9 warnings (resulting in some fixed bugs). Remaining AM ↵wycats2010-03-171-1/+2
| | | | warnings are in dependencies.
* Eliminate warnings for AM on 1.8wycats2010-03-161-1/+2
|
* adds a few missing requires in AS object.rb and module.rbXavier Noria2010-02-141-0/+1
| | | | Signed-off-by: Yehuda Katz <yehudakatz@YK.local>
* moves Class#reachable? to Module#reachable?, bases implementation on ↵Xavier Noria2010-02-111-0/+1
| | | | anonymous? and constantize, and adds test coverage
* defines Module#anonymous?Xavier Noria2010-02-111-1/+1
|
* removes Module#as_load_path, which is no longer usedXavier Noria2010-02-071-1/+0
|
* removes Module#included_in_classes, which is no longer usedXavier Noria2010-02-071-1/+0
|
* Move model naming into ActiveModelJoshua Peek2009-06-171-1/+0
|
* Make module dependency DSL opt inJoshua Peek2009-05-071-1/+0
|
* Switch last module core extension to class reopenJeremy Kemper2009-04-221-13/+0
|
* Merge branch 'master' into cherryJeremy Kemper2009-04-201-0/+1
|\ | | | | | | | | | | | | | | | | | | | | 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
| * Add depends_on, use, and setup to abstract up ideas about module inheritance.Yehuda Katz and Carl Lerche2009-04-071-0/+1
| |
* | Convert Module aliasing and introspection extension modules to class reopenJeremy Kemper2009-03-281-2/+3
|/
* Database connections are now pooled, one pool per #establish_connection call.Jeremy Kemper2008-09-021-1/+10
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Pools start out empty and grow as necessary to a maximum size (default is 5, configure size with key 'pool' in your database configuration). If no connections are available, a thread will wait up to a 'wait_timeout' time (default is 5 seconds). Connections are verified and reset when checked out from the pool (usually upon first access to ActiveRecord::Base.connection), and returned back to the pool after each request. If you would like to use connection pools outside of ActionPack, there is an ActiveRecord::Base.connection_pool method that gives you access to the pool, and you can manually checkout/checkin connections, or supply a block to ActiveRecord::Base.connection_pool.with_connection which takes care of the checkout/checkin for you. [#936 state:resolved]
| * Move some core extension methods into a module under the ↵Hongli Lai (Phusion)2008-08-291-1/+10
| | | | | | | | | | | | | | | | 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>
* | Adds Module#synchronize for easier method-level synchronization.Nick2008-08-291-0/+1
|/
* Move Class::ModelName to Active Support module core_extJeremy Kemper2008-06-061-0/+5
|
* Ruby 1.9 compat, consistent load pathsJeremy Kemper2007-10-021-8/+8
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7719 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Add Module#attr_accessor_with_default to initialize value of attribute ↵Marcel Molina2006-11-161-0/+1
| | | | | | before setting it. Closes #6538. [Stuart Halloway, Marcel Molina Jr.] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5539 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* attr_internal to support namespacing and deprecationJeremy Kemper2006-08-071-0/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4692 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added Module#alias_method_chainJamis Buck2006-04-261-0/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4276 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Dependencies cleanup. Fixes #4221.Nicholas Seckar2006-03-271-1/+3
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4060 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added delegation support to Module that allows multiple delegations at once ↵David Heinemeier Hansson2006-02-041-1/+2
| | | | | | (unlike Forwardable in the stdlib) [DHH] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3535 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added reusable reloading support through the inclusion of the Relodable ↵David Heinemeier Hansson2006-01-291-0/+2
module that all subclasses of ActiveRecord::Base, ActiveRecord::Observer, ActiveController::Base, and ActionMailer::Base automatically gets [DHH]. Added auto-loading support for classes in modules, so Conductor::Migration will look for conductor/migration.rb and Conductor::Database::Settings will look for conductor/database/settings.rb [Nicholas Seckar]. Refactored extensions to module, class, and object in active support [DHH] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3493 5ecf4fe2-1ee6-0310-87b1-e25e094e27de