Sha256: f356dad554038d6950187b475b114e75f1d503b04fab37d770f3b7c22fe6ae6c

Contents?: true

Size: 753 Bytes

Versions: 28

Compression:

Stored size: 753 Bytes

Contents

module ActionController
  class Base
    protected
      # Deprecated in favor of calling redirect_to directly with the path.
      def redirect_to_path(path) #:nodoc:
        redirect_to(path)
      end

      # Deprecated in favor of calling redirect_to directly with the url. If the resource has moved permanently, it's possible to pass
      # true as the second parameter and the browser will get "301 Moved Permanently" instead of "302 Found". This can also be done through
      # just setting the headers["Status"] to "301 Moved Permanently" before using the redirect_to.
      def redirect_to_url(url, permanently = false) #:nodoc:
        headers["Status"] = "301 Moved Permanently" if permanently
        redirect_to(url)
      end
  end
end

Version data entries

28 entries across 28 versions & 4 rubygems

Version Path
jstorimer-deep-test-2.0.0 sample_rails_project/vendor/rails/actionpack/lib/action_controller/deprecated_redirects.rb
jstorimer-deep-test-1.4.0 sample_rails_project/vendor/rails/actionpack/lib/action_controller/deprecated_redirects.rb
jstorimer-deep-test-1.3.0 sample_rails_project/vendor/rails/actionpack/lib/action_controller/deprecated_redirects.rb
jstorimer-deep-test-1.2.0 sample_rails_project/vendor/rails/actionpack/lib/action_controller/deprecated_redirects.rb
jstorimer-deep-test-1.1.0 sample_rails_project/vendor/rails/actionpack/lib/action_controller/deprecated_redirects.rb
jstorimer-deep-test-1.0.0 sample_rails_project/vendor/rails/actionpack/lib/action_controller/deprecated_redirects.rb
jstorimer-deep-test-0.2.0 sample_rails_project/vendor/rails/actionpack/lib/action_controller/deprecated_redirects.rb
jstorimer-deep-test-0.1.0 sample_rails_project/vendor/rails/actionpack/lib/action_controller/deprecated_redirects.rb
actionpack-1.12.0 lib/action_controller/deprecated_redirects.rb
actionpack-1.12.1 lib/action_controller/deprecated_redirects.rb
actionpack-1.12.5 lib/action_controller/deprecated_redirects.rb
actionpack-1.12.4 lib/action_controller/deprecated_redirects.rb
actionpack-1.13.0 lib/action_controller/deprecated_redirects.rb
actionpack-1.12.2 lib/action_controller/deprecated_redirects.rb
actionpack-1.12.3 lib/action_controller/deprecated_redirects.rb
actionpack-1.13.2 lib/action_controller/deprecated_redirects.rb
actionpack-1.13.1 lib/action_controller/deprecated_redirects.rb
actionpack-1.13.4 lib/action_controller/deprecated_redirects.rb
actionpack-1.13.6 lib/action_controller/deprecated_redirects.rb
actionpack-1.13.3 lib/action_controller/deprecated_redirects.rb