lib/gxapi.rb in gxapi_rails-0.0.4 vs lib/gxapi.rb in gxapi_rails-0.0.5
- old
+ new
@@ -3,20 +3,16 @@
require 'erb'
require 'json'
require 'yaml'
require File.expand_path('../gxapi/base', __FILE__)
+require File.expand_path('../gxapi/experiment_identifier', __FILE__)
require File.expand_path('../gxapi/google_analytics', __FILE__)
require File.expand_path('../gxapi/ostruct', __FILE__)
require File.expand_path('../gxapi/version', __FILE__)
-if defined?(::Rails)
- require File.expand_path('../gxapi/controller_methods', __FILE__)
- require File.expand_path('../gxapi/engine', __FILE__)
-end
-
module Gxapi
#
# get our cache instance
#
@@ -155,6 +151,11 @@
self.logger.error(e.message)
self.logger.error(e.backtrace)
false
end
end
-end
\ No newline at end of file
+end
+
+if defined?(::Rails)
+ require File.expand_path('../gxapi/controller_methods', __FILE__)
+ require File.expand_path('../gxapi/engine', __FILE__)
+end