summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--state.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/state.rb b/state.rb
index 1381480..f9bfecb 100644
--- a/state.rb
+++ b/state.rb
@@ -242,7 +242,7 @@ class Hold
attr :params # Parameters of this hold
# +params+ should be a hash of parameters.
- def initialize(params)
+ def initialize(params = {})
raise NoMethodError if self.class == Hold
raise TypeError unless params.is_a? Hash
@params = params