lib/legato.rb in legato-0.0.7 vs lib/legato.rb in legato-0.0.8
- old
+ new
@@ -2,10 +2,13 @@
require 'multi_json'
require 'cgi'
require 'ostruct'
-unless Object.const_defined?("ActiveSupport")
+if Object.const_defined?("ActiveSupport")
+ require "active_support/core_ext/string"
+ require "active_support/core_ext/array"
+else
require "legato/core_ext/string"
require "legato/core_ext/array"
end
module Legato