Sha256: 174d9ad8c9a375218d25b7e771afda877a7ec9bc52ba2726dc7e423588501857

Contents?: true

Size: 323 Bytes

Versions: 25

Compression:

Stored size: 323 Bytes

Contents

module Sinatra
  module CometIO
    module Helpers

      def cometio_js
        "#{env['rack.url_scheme']}://#{env['HTTP_HOST']}#{env['SCRIPT_NAME']}/cometio/cometio.js"
      end

      def cometio_url
        "#{env['rack.url_scheme']}://#{env['HTTP_HOST']}#{env['SCRIPT_NAME']}/cometio/io"
      end

    end
  end
end

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
sinatra-cometio-0.6.0 lib/sinatra-cometio/helpers.rb
sinatra-cometio-0.5.9 lib/sinatra-cometio/helpers.rb
sinatra-cometio-0.5.8 lib/sinatra-cometio/helpers.rb
sinatra-cometio-0.5.7 lib/sinatra-cometio/helpers.rb
sinatra-cometio-0.5.6 lib/sinatra-cometio/helpers.rb
sinatra-cometio-0.5.5 lib/sinatra-cometio/helpers.rb
sinatra-cometio-0.5.4 lib/sinatra-cometio/helpers.rb
sinatra-cometio-0.5.3 lib/sinatra-cometio/helpers.rb
sinatra-cometio-0.5.2 lib/sinatra-cometio/helpers.rb
sinatra-cometio-0.5.1 lib/sinatra-cometio/helpers.rb
sinatra-cometio-0.5.0 lib/sinatra-cometio/helpers.rb
sinatra-cometio-0.4.3 lib/sinatra-cometio/helpers.rb
sinatra-cometio-0.4.2 lib/sinatra-cometio/helpers.rb
sinatra-cometio-0.4.1 lib/sinatra-cometio/helpers.rb
sinatra-cometio-0.4.0 lib/sinatra-cometio/helpers.rb
sinatra-cometio-0.3.9 lib/sinatra-cometio/helpers.rb
sinatra-cometio-0.3.8 lib/sinatra-cometio/helpers.rb
sinatra-cometio-0.3.7 lib/sinatra-cometio/helpers.rb
sinatra-cometio-0.3.6 lib/sinatra-cometio/helpers.rb
sinatra-cometio-0.3.5 lib/sinatra-cometio/helpers.rb