Sha256: 40cba4a551c55ced6ce38882de05a92a9c413d2a20a9ac9ec13ee98a63f87b6f

Contents?: true

Size: 402 Bytes

Versions: 8

Compression:

Stored size: 402 Bytes

Contents

class PageletProxyController < ::ApplicationController
  include ActionController::Live
  include PageletsHelper

  def show
    @urls = params[:urls]

    response.headers['Content-Type'] = 'text/javascript'

    response.stream.write "\n"

    @urls.each do |url|
      response.stream.write pagelet(url)
      response.stream.write "\n\n//\n\n"
    end
  ensure
    response.stream.close
  end

end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
pagelet_rails-0.1.7 app/controllers/pagelet_proxy_controller.rb
pagelet_rails-0.1.6 app/controllers/pagelet_proxy_controller.rb
pagelet_rails-0.1.5 app/controllers/pagelet_proxy_controller.rb
pagelet_rails-0.1.4 app/controllers/pagelet_proxy_controller.rb
pagelet_rails-0.1.3 app/controllers/pagelet_proxy_controller.rb
pagelet_rails-0.1.2 app/controllers/pagelet_proxy_controller.rb
pagelet_rails-0.1.1 app/controllers/pagelet_proxy_controller.rb
pagelet_rails-0.1.0 app/controllers/pagelet_proxy_controller.rb