fixes issues #260 #295

Merged
1 commit merged into from Jan 6, 2012
@@ -19,7 +19,7 @@ module ClassMethods
def rw_config(key, value, default_value = nil, read_value = nil)
if value == read_value
return acts_as_authentic_config[key] if acts_as_authentic_config.include?(key)
- rw_config(key, default_value)
+ rw_config(key, default_value) unless default_value.nil?
else
config = acts_as_authentic_config.clone
config[key] = value
@@ -74,4 +74,4 @@ def build_key(last_part)
end
end
end
-end
+end