Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Changeset 5212

Show
Ignore:
Timestamp:
09/30/06 01:38:22 (2 years ago)
Author:
rick
Message:

Fixed some deprecation warnings in ActionPack [Rick Olson]

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/actionpack/CHANGELOG

    r5207 r5212  
    11*SVN* 
     2 
     3* Fixed some deprecation warnings in ActionPack [Rick Olson] 
    24 
    35* assert_select_rjs decodes escaped unicode chars since the Javascript generators encode them.  #6240 [japgolly] 
  • trunk/actionpack/lib/action_controller/caching.rb

    r5207 r5212  
    136136      private 
    137137        def caching_allowed 
    138           !@request.post? && response.headers['Status'] && response.headers['Status'].to_i < 400 
     138          !request.post? && response.headers['Status'] && response.headers['Status'].to_i < 400 
    139139        end 
    140140    end 
     
    560560          configuration = sweepers.last.is_a?(Hash) ? sweepers.pop : {} 
    561561          sweepers.each do |sweeper| 
    562             observer(sweeper) 
    563  
     562            ActiveRecord::Base.observers << sweeper if defined?(ActiveRecord) and defined?(ActiveRecord::Base) 
    564563            sweeper_instance = Object.const_get(Inflector.classify(sweeper)).instance 
    565564 
  • trunk/actionpack/lib/action_controller/rescue.rb

    r5129 r5212  
    6060      # remotely. 
    6161      def local_request? #:doc: 
    62         [@request.remote_addr, @request.remote_ip] == ["127.0.0.1"] * 2 
     62        [request.remote_addr, request.remote_ip] == ["127.0.0.1"] * 2 
    6363      end 
    6464