lib/ar2gostruct.rb in ar2gostruct-0.0.2 vs lib/ar2gostruct.rb in ar2gostruct-0.0.3
- old
+ new
@@ -1,10 +1,10 @@
require "ar2gostruct/version"
require "active_support/inflector"
require "active_record"
-require "ar2gostruct/railtie"
+require "ar2gostruct/railtie" if defined?(Rails)
module Ar2gostruct
MODEL_DIR = ENV["model_dir"] || "app/models"
TYPE_MAP = {