Permalink
Browse files

Merge pull request #295 from stephenprater/fix_issue_260

fixes issues #260
  • Loading branch information...
2 parents 594f4f4 + 41eba3d commit c2c5c988fd5661794755e621c9bfe8da1130b48e @binarylogic committed Jan 6, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/authlogic/session/foundation.rb
View
4 lib/authlogic/session/foundation.rb
@@ -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

0 comments on commit c2c5c98

Please sign in to comment.