diff options
author | Oscar Del Ben <info@oscardelben.com> | 2012-05-24 08:51:32 -0700 |
---|---|---|
committer | Oscar Del Ben <info@oscardelben.com> | 2012-05-24 08:53:03 -0700 |
commit | 2ccc2109b7af1d656df0972747ed3c0363528e06 (patch) | |
tree | e8fb652a081b18cf32072d331bd6a7823e697ed9 /guides | |
parent | cd6aa9f0952904437c7ecf9f153a3eb3860f3384 (diff) | |
download | rails-2ccc2109b7af1d656df0972747ed3c0363528e06.tar.gz rails-2ccc2109b7af1d656df0972747ed3c0363528e06.tar.bz2 rails-2ccc2109b7af1d656df0972747ed3c0363528e06.zip |
[Guides] Add core_ext/object section
Diffstat (limited to 'guides')
-rw-r--r-- | guides/source/initialization.textile | 26 |
1 files changed, 25 insertions, 1 deletions
diff --git a/guides/source/initialization.textile b/guides/source/initialization.textile index be33f795d3..add3f44b1c 100644 --- a/guides/source/initialization.textile +++ b/guides/source/initialization.textile @@ -687,7 +687,31 @@ This file is the next file required from +rails/configuration.rb+ is the file th The next file required is +active_support/core_ext/hash/deep_dup+ which is covered in "Active Support Core Extensions guide":active_support_core_extensions.html#deep_dup -The file that is required next from is +rails/paths+ +h4. +active_support/core_ext/object+ + +This file is responsible for requiring many more core extensions: + +<ruby> +require 'active_support/core_ext/object/acts_like' +require 'active_support/core_ext/object/blank' +require 'active_support/core_ext/object/duplicable' +require 'active_support/core_ext/object/deep_dup' +require 'active_support/core_ext/object/try' +require 'active_support/core_ext/object/inclusion' + +require 'active_support/core_ext/object/conversions' +require 'active_support/core_ext/object/instance_variables' + +require 'active_support/core_ext/object/to_json' +require 'active_support/core_ext/object/to_param' +require 'active_support/core_ext/object/to_query' +require 'active_support/core_ext/object/with_options' +</ruby> + +The Rails "api documentation":http://api.rubyonrails.org/ covers them in +great detail, so we're not going to explain each of them. + +The file that is required next from +rails/configuration+ is +rails/paths+ h4. +railties/lib/rails/paths.rb+ |