Skip to content

Commit

Permalink
Ensure common section is available upon parsing.
Browse files Browse the repository at this point in the history
  • Loading branch information
pat committed Apr 4, 2020
1 parent c4bc46b commit dd2a4d7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/riddle/configuration/parser.rb
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,10 @@ def each_with_prefix(prefix)
end

def set_common
if inner['common'] && inner['common'].values.compact.any?
configuration.common.common_sphinx_configuration = true
end

set_settings configuration.common, inner['common'] || {}
end

Expand Down

0 comments on commit dd2a4d7

Please sign in to comment.