Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Don't use #tap before Active Support is available, since older versio…

…ns of ruby don't have native implementations

[#2603 state:committed]

Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
  • Loading branch information...
commit d3ee8756c8b09b8524a9599926b02ededd27319c 1 parent 1c6fcbf
Chris Kampmeier chrisk authored jeremy committed
Showing with 2 additions and 3 deletions.
  1. +2 −3 activerecord/lib/active_record.rb
5 activerecord/lib/active_record.rb
View
@@ -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'
Please sign in to comment.
Something went wrong with that request. Please try again.