Browse files

Explicitly require ActiveSupport core extensions

Without these explicit require statements, core extensions are sometimes not loaded, e.g. when a standalone (non Active Record or Active Resource-inherited) class is used to encapsulate Legato models.
  • Loading branch information...
1 parent 57be245 commit c656dc50a0dd83ca37d50dab050eb030c5ad83a4 @edward edward committed Dec 17, 2012
Showing with 4 additions and 1 deletion.
  1. +4 −1 lib/legato.rb
@@ -4,7 +4,10 @@
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"
require "legato/core_ext/string"
require "legato/core_ext/array"

0 comments on commit c656dc5

Please sign in to comment.