Skip to content

Commit

Permalink
removing request overriding
Browse files Browse the repository at this point in the history
  • Loading branch information
guilhermesilveira committed Oct 21, 2010
1 parent be3494f commit 47f03d6
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
2 changes: 1 addition & 1 deletion lib/restfulie/client/http/request_adapter.rb
Expand Up @@ -80,7 +80,7 @@ def headers
# * <tt>method: :get,:post,:delete,:head,:put</tt>
# * <tt>path: '/posts'</tt>
# * <tt>args: payload: 'some text' and/or headers: {'Accept' => '*/*', 'Content-Type' => 'application/atom+xml'}</tt>
def request(method, path, *args)
def request(method = nil, path = nil, *args)
@response_handler = Restfulie::Client::Response::IgnoreError.new(@response_handler)
request!(method, path, *args)
end
Expand Down
7 changes: 0 additions & 7 deletions lib/restfulie/client/http/request_history.rb
Expand Up @@ -39,13 +39,6 @@ def request!(method=nil, path=nil, *args)#:nodoc:
end
end

# making method and path optional
def request(method=nil, path=nil, *args)#:nodoc:
request!(method, path, *args)
rescue Error::RESTError => se
se
end

def history(number)
@snapshot = snapshots[number]
raise "Undefined snapshot for #{number}" unless @snapshot
Expand Down

0 comments on commit 47f03d6

Please sign in to comment.