Displaying 1 result from an estimated 1 matches for "url_for_with_ssl_support".
2007 Aug 30
1
alias_method_chain stack level too deep in Rake test only
...t;#{base} does not define url_for" unless
base.method_defined?(:url_for)
      unless base.respond_to?(:url_for_without_ssl_supprt)
        base.send :include, InstanceMethods
        base.send :alias_method_chain, :url_for, :ssl_support
      end
    end
    module InstanceMethods
      def url_for_with_ssl_support(options)
        new_options = options.dup
        if options.kind_of?(Hash)
          new_options.merge!({ :only_path => false }) if request.ssl?
^ url_ssl?(new_options)
          if url_ssl?(new_options)
            new_options.merge!({ :protocol => ''https'' })...