We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 45bbdc4 commit 0098b76Copy full SHA for 0098b76
1 file changed
lib/apiwork/export/base.rb
@@ -263,10 +263,7 @@ def transform_key(key)
263
end
264
265
def extract_options_from_config(config)
266
- self.class.options.keys.each_with_object({}) do |key, hash|
267
- value = config.public_send(key)
268
- hash[key] = value unless value.nil?
269
- end
+ config.to_h.slice(*self.class.options.keys).compact
270
271
272
def validate_options!
0 commit comments