app/models/radiant/config.rb in radiant-1.0.0.rc3 vs app/models/radiant/config.rb in radiant-1.0.0.rc4

- old
+ new

@@ -98,10 +98,11 @@ def initialize_cache Radiant::Config.ensure_cache_file Rails.cache.write('Radiant::Config',Radiant::Config.to_hash) Rails.cache.write('Radiant.cache_mtime', File.mtime(cache_file)) + Rails.cache.silence! end def cache_file_exists? File.file?(cache_file) end @@ -235,10 +236,10 @@ def value=(param) newvalue = param.to_s if newvalue != self[:value] raise ConfigError, "#{self.key} cannot be changed" unless settable? || self[:value].blank? if boolean? - self[:value] = (newvalue == "0" || newvalue == "false" || newvalue.blank? ) ? "false" : "true" + self[:value] = (newvalue == "1" || newvalue == "true") ? "true" : "false" else self[:value] = newvalue end self.save! end