lib/pg_objects/config.rb in pg_objects-1.2.2 vs lib/pg_objects/config.rb in pg_objects-1.3.0
- old
+ new
@@ -1,5 +1,7 @@
+require_relative 'yaml_configurable'
+
module PgObjects
##
# Use to set custom configuration:
#
# PgObjects.configure do |config|
@@ -21,12 +23,15 @@
end
end
class Config
extend Dry::Configurable
+ extend YamlConfigurable
setting :before_path, default: 'db/objects/before'
setting :after_path, default: 'db/objects/after'
setting :extensions, default: ['sql']
setting :silent, default: false
+
+ load_from_yaml 'config/pg_objects.yml'
end
end