lib/rconf/configurator.rb in rconf-0.10.1 vs lib/rconf/configurator.rb in rconf-1.0.0
- old
+ new
@@ -86,10 +86,10 @@
#
# === Return
# nil:: If settings are valid for this configurator
# error(String):: Error message otherwise
def validate
- @settings_values.merge!(OverridesLanguage.overrides_for(self.class.key.to_s)) unless Profile.force_reconfigure?
+ @settings_values.merge!(OverridesLanguage.overrides_for(self.class.key.to_s))
if e = OverridesLanguage.parse_error
error = "Could not load overrides file '#{OverridesLanguage::OVERRIDES_FILE}' (#{e.message})"
else
required = self.class.all_settings.select { |s| s[:options][:required] }.map { |s| s[:name] }
return nil unless required