utils: fix option handling in 'odisabled'

Options passed to `odisabled` were completely ignored. Instead, merge
them with the defaults that distinguish `odisabled` from `odeprecated`.
This commit is contained in:
Martin Afanasjew 2016-07-30 14:59:16 +02:00
parent 0a33cc591d
commit 1244aa6ece

View File

@ -152,7 +152,8 @@ def odeprecated(method, replacement = nil, options = {})
end
def odisabled(method, replacement = nil, options = {})
odeprecated(method, replacement, :die => true, :caller => caller)
options = { :die => true, :caller => caller }.merge(options)
odeprecated(method, replacement, options)
end
def pretty_installed(f)