public
Fork of rails/rails
Description: Ruby on Rails
Homepage: http://rubyonrails.org
Clone URL: git://github.com/josh/rails.git
Fixed Base#exists? to check status code as integer [#299 state:resolved] 
(Wes Oldenbeuving)
dhh (author)
Mon Jun 02 19:58:42 -0700 2008
commit  e7a305f08d8f72f81449e1d8934fba31f038ad88
tree    c0b5a879b4d88f6f63bcb0f7bf43a501ff1c26df
parent  442d2f1032df6744c11f21b5ec6281c77e39c242
...
 
 
 
 
 
1
2
3
...
1
2
3
4
5
6
7
8
0
@@ -1,3 +1,8 @@
0
+*Edge*
0
+
0
+* Fixed Base#exists? to check status code as integer [#299 state:resolved] (Wes Oldenbeuving)
0
+
0
+
0
 *2.1.0 (May 31st, 2008)*
0
 
0
 * Fixed response logging to use length instead of the entire thing (seangeo) [#27]
...
538
539
540
541
 
542
543
544
...
538
539
540
 
541
542
543
544
0
@@ -538,7 +538,7 @@ module ActiveResource
0
           prefix_options, query_options = split_options(options[:params])
0
           path = element_path(id, prefix_options, query_options)
0
           response = connection.head(path, headers)
0
- response.code == 200
0
+ response.code.to_i == 200
0
         end
0
         # id && !find_single(id, options).nil?
0
       rescue ActiveResource::ResourceNotFound

Comments

    No one has commented yet.