Skip to content
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

Cannot override site #27

Open
hossamhossny opened this issue Aug 26, 2017 · 1 comment
Open

Cannot override site #27

hossamhossny opened this issue Aug 26, 2017 · 1 comment

Comments

@hossamhossny
Copy link

No matter what I try; setting site in configurations or passing it in options like @all_questions = RubyStackoverflow.questions(options = {:site => 'superuser'}) I still get options as
:site=>"stackoverflow", :key=>"xZZfDLYQmyfMzQ0adlyK6A((", :access_token=>"7kQ0Iz4b3uvltaQCHa730g))"}

I am not sure how to troubleshoot but in ruby-stackoverflow/lib/ruby-stackoverflow/client.rb line 56 options[:site] ||= configuration.site || "stackoverflow" is called already, so where else I should be looking at?

@raysrashmi
Copy link
Owner

@hossamhossny can you try like this RubyStackoverflow.questions({:site => 'superuser'})

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants