aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJosh Kalderimis <josh.kalderimis@gmail.com>2011-05-23 16:38:51 +0200
committerJosh Kalderimis <josh.kalderimis@gmail.com>2011-05-23 16:38:51 +0200
commit09314f21c5ad9125aaaa3d7a3b1ddee417fb5a03 (patch)
tree99282fd568e5734303dabc372fd9f7b5d7f038f7
parentcb7677180ba4b04d96bd6907305c04049950b1c7 (diff)
downloadrails-09314f21c5ad9125aaaa3d7a3b1ddee417fb5a03.tar.gz
rails-09314f21c5ad9125aaaa3d7a3b1ddee417fb5a03.tar.bz2
rails-09314f21c5ad9125aaaa3d7a3b1ddee417fb5a03.zip
removed require_library_or_gem from the AS core extensions guide
-rw-r--r--railties/guides/source/active_support_core_extensions.textile14
1 files changed, 0 insertions, 14 deletions
diff --git a/railties/guides/source/active_support_core_extensions.textile b/railties/guides/source/active_support_core_extensions.textile
index 66869b4eeb..43aa6dfbbb 100644
--- a/railties/guides/source/active_support_core_extensions.textile
+++ b/railties/guides/source/active_support_core_extensions.textile
@@ -436,20 +436,6 @@ end
NOTE: Defined in +active_support/core_ext/kernel/reporting.rb+.
-h4. +require_library_or_gem+
-
-The convenience method +require_library_or_gem+ tries to load its argument with a regular +require+ first. If it fails loads +rubygems+ and tries again.
-
-If the first attempt is a failure and +rubygems+ can't be loaded the method raises +LoadError+. A +LoadError+ is also raised if +rubygems+ is available but the argument is not loadable as a gem.
-
-For example, that's the way the MySQL adapter loads the MySQL library:
-
-<ruby>
-require_library_or_gem('mysql')
-</ruby>
-
-NOTE: Defined in +active_support/core_ext/kernel/requires.rb+.
-
h4. +in?+
The predicate +in?+ tests if an object is included in another object. An +ArgumentError+ exception will be raised if the argument passed does not respond to +include?+.