-
Notifications
You must be signed in to change notification settings - Fork 964
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Setting basic_auth
on Base
doesn't get inherited
#276
Comments
@coreyward , can you give full steps for reproduce it ? ( Write here full example, which doesn't work ) |
The default options should follow, but do not. |
@coreyward , I test it, but it works: require './lib/httparty'
# first example
class Yandex
include HTTParty
basic_auth 'rusik', '123'
end
class YandexMoney < Yandex
end
p Yandex.default_options
p YandexMoney.default_options
p Yandex.default_options == YandexMoney.default_options
# second example
class Google
include HTTParty
end
Google.default_options.merge! basic_auth: {username: 'john', password: '123'}
class GoogleWallet < Google
end
p Google.default_options
p GoogleWallet.default_options
p Google.default_options == GoogleWallet.default_options Output:
@jnunemaker, what you think about it ? |
I guess closing until we get something repeatable to prove there is an issue. |
Hmm, I wonder if it isn't a version issue, or perhaps because CloseIO inherits from OpenStruct. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Similar to #83. Setting
basic_auth
in aBase
class and inheriting from it in subclasses does not work. Issue exists in Closeio library:Using v0.13.0.
The text was updated successfully, but these errors were encountered: