lib/github_api/repos/watching.rb in github_api-0.5.3 vs lib/github_api/repos/watching.rb in github_api-0.5.4

- old
+ new

@@ -31,10 +31,10 @@ # = Examples # github = Github.new :oauth_token => '...' # github.repos.watching.watched # def watched(*args) - params = args.last.is_a?(Hash) ? args.pop : {} + params = args.extract_options! _normalize_params_keys(params) _merge_user_into_params!(params) unless params.has_key?('user') response = if (user_name = params.delete('user')) get_request("/users/#{user_name}/watched", params)