mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
removed require_library_or_gem from the AS core extensions guide
This commit is contained in:
parent
cb7677180b
commit
09314f21c5
1 changed files with 0 additions and 14 deletions
|
@ -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?+.
|
||||
|
|
Loading…
Reference in a new issue