提交 d3ee8756 编写于 作者: C Chris Kampmeier 提交者: Jeremy Kemper

Don't use #tap before Active Support is available, since older versions of...

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: NJeremy Kemper <jeremy@bitsweat.net>
上级 1c6fcbfd
......@@ -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'
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册