fixed a bug with CastedModel constructer calling Hash#initialize(ifnone)
Signed-off-by: Matt Aimonetti <mattaimonetti@gmail.com>
This commit is contained in:
parent
ef3b0527c9
commit
6fca60ebe4
2 changed files with 11 additions and 1 deletions
|
@ -9,7 +9,8 @@ module CouchRest
|
|||
end
|
||||
|
||||
def initialize(keys={})
|
||||
super
|
||||
raise StandardError unless self.is_a? Hash
|
||||
super()
|
||||
keys.each do |k,v|
|
||||
self[k.to_s] = v
|
||||
end if keys
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue