Skip to content

Commit 0098b76

Browse files
committed
fix: boolean export options ignoring default false
1 parent 45bbdc4 commit 0098b76

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

lib/apiwork/export/base.rb

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -263,10 +263,7 @@ def transform_key(key)
263263
end
264264

265265
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
266+
config.to_h.slice(*self.class.options.keys).compact
270267
end
271268

272269
def validate_options!

0 commit comments

Comments
 (0)