lib/nifty_settings.rb in nifty_settings-1.1.7 vs lib/nifty_settings.rb in nifty_settings-2.0.0
- old
+ new
@@ -1,5 +1,13 @@
+require 'gem_config'
+
module NiftySettings
+ include GemConfig::Base
+
+ with_configuration do
+ has :settings_file, classes: [String, Pathname]
+ has :settings_dir, classes: [String, Pathname]
+ end
end
require 'nifty_settings/version'
require 'nifty_settings/settings'
require 'nifty_settings/railtie' if defined?(Rails)