# recently was reading
# http://blogs.agilefaqs.com/2009/08/19/are-comments-evil/ on whether comments
# in code are evil are not.  it reminded me of this snippet of code i wrote
# recently which i think positively manages to both not comment and comment at
# the same time
#
#
#
  def App.default_url_options
    if defined?(@default_url_options)
      @default_url_options
    else
      options =
        if((request = current_request))
          {:protocol => request.protocol, :host => request.host, :port => request.port}
        else
          {:protocol => App.protocol, :host => App.host}
        end
      options.update(:only_path => false)
      options.extend UnFuckTheRailsMergeForDefaultOptions
      options
    end
  end

  module UnFuckTheRailsMergeForDefaultOptions
    def merge other
      reverse_merged = other.dup.merge(self)
      replace reverse_merged
    end
  end