Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

FIXED: Removed bad default value setting.

  • Loading branch information...
commit 135cdf45b8c390ba6525406f59ee50705b4cba23 1 parent d5d46e8
@delano authored
Showing with 5 additions and 2 deletions.
  1. +4 −1 CHANGES.txt
  2. +1 −1  lib/storable.rb
View
5 CHANGES.txt
@@ -1,8 +1,11 @@
STORABLE, CHANGES
* TODO: https://github.com/delano/storable/pull/2
-* TODO: Handle nested hashes and arrays.
+* TODO: Handle nested hashes and arrays.
+#### 0.8.9 (GREAT RAPTURE) ##########################
+
+* FIXED: Removed bad default value setting.
#### 0.8.8 (2011-05-20) #############################
View
2  lib/storable.rb
@@ -104,7 +104,7 @@ def self.field(*args, &processor)
STDERR.puts "method exists: #{self}##{fname}" if Storable.debug
else
define_method(fname) do
- ret = instance_variable_get("@#{fname}") || opts[:default]
+ ret = instance_variable_get("@#{fname}")
if ret.nil?
if opts[:default]
ret = opts[:default]
Please sign in to comment.
Something went wrong with that request. Please try again.