Fix #327 - Don't break Module.hash
This commit is contained in:
parent
e8481dd14d
commit
4173efe67b
|
@ -107,7 +107,8 @@ module Google
|
|||
# @param [String] name
|
||||
# Property name
|
||||
# @param [Hash] options
|
||||
def hash(name, options)
|
||||
def hash(name = nil, options = nil)
|
||||
return super() unless name # Allow Object.hash
|
||||
set_default_options(name, options)
|
||||
super(name, options)
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue