lib/config_default.rb in config_default-0.1.0 vs lib/config_default.rb in config_default-0.1.1
- old
+ new
@@ -3,14 +3,12 @@
require "active_support/core_ext/hash"
require "config_default/version"
require "config_default/config"
require "config_default/struct"
+require "config_default/rails_monkey_patch"
-require "config_default/rails/application/configuration_extension"
-require "config_default/rails/application_extension"
-
module ConfigDefault
extend self
attr_accessor :config
@@ -46,5 +44,7 @@
def load_struct(name, key: Rails.env, recursive: false, allow_nil: false)
attributes = load(name, key: key)
ConfigDefault::Struct.new(attributes, recursive: recursive, allow_nil: allow_nil)
end
end
+
+ConfigDefault::RailsMonkeyPatch.call