mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Don't use #tap before Active Support is available, since older versions of ruby don't have native implementations
[#2603 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
This commit is contained in:
parent
1c6fcbfd2d
commit
d3ee8756c8
1 changed files with 2 additions and 3 deletions
|
@ -21,9 +21,8 @@
|
|||
# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
#++
|
||||
|
||||
"#{File.dirname(__FILE__)}/../../activesupport/lib".tap do |path|
|
||||
$:.unshift(path) if File.directory?(path)
|
||||
end
|
||||
activesupport_path = "#{File.dirname(__FILE__)}/../../activesupport/lib"
|
||||
$:.unshift(activesupport_path) if File.directory?(activesupport_path)
|
||||
require 'active_support'
|
||||
require 'active_support/core/all'
|
||||
|
||||
|
|
Loading…
Reference in a new issue