lib/legion/settings/validator.rb in legion-settings-1.1.1 vs lib/legion/settings/validator.rb in legion-settings-1.1.2

- old
+ new

@@ -40,10 +40,10 @@ private def validate_categories(settings) CATEGORIES.each do |category| if is_a_hash?(settings[category]) - validate_method = ('validate_' + category.to_s.chop).to_sym + validate_method = "validate_#{category.to_s.chop}".to_sym settings[category].each do |name, details| send(validate_method, details.merge(name: name.to_s)) end else invalid(settings[category], "#{category} must be a hash")