lib/china_regions.rb in china_regions-0.4.5 vs lib/china_regions.rb in china_regions-1.0.0
- old
+ new
@@ -1,7 +1,11 @@
# frozen_string_literal: true
require 'china_regions/version'
-require 'china_regions/engine' if defined? Rails
-require 'china_regions/helpers/form_helper'
-module ChinaRegions; end
+if defined? Rails
+ require 'china_regions/engine'
+ require 'china_regions/helpers/form_helper'
+end
+
+module ChinaRegions
+end