File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed 
actionpack/lib/action_controller/metal Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ module ConditionalGet
1717    # 
1818    #   def show 
1919    #     @article = Article.find(params[:id]) 
20-     #     fresh_when(:etag => @article, :last_modified => @article.created_at.utc , :public => true) 
20+     #     fresh_when(:etag => @article, :last_modified => @article.created_at, :public => true) 
2121    #   end 
2222    # 
2323    # This will render the show template if the request isn't sending a matching etag or 
@@ -48,7 +48,7 @@ def fresh_when(options)
4848    #   def show 
4949    #     @article = Article.find(params[:id]) 
5050    # 
51-     #     if stale?(:etag => @article, :last_modified => @article.created_at.utc ) 
51+     #     if stale?(:etag => @article, :last_modified => @article.created_at) 
5252    #       @statistics = @article.really_expensive_call 
5353    #       respond_to do |format| 
5454    #         # all the supported formats 
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments