Sha256: cc79dfccf0b6ede0bfef9680f154895bc17f9b5942e1e3eb889bc009221090c0

Contents?: true

Size: 204 Bytes

Versions: 23

Compression:

Stored size: 204 Bytes

Contents

module Sinatra
  module RocketIO
    module Helpers

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

    end
  end
end

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
sinatra-rocketio-0.3.3 lib/sinatra-rocketio/helpers.rb
sinatra-rocketio-0.3.2 lib/sinatra-rocketio/helpers.rb
sinatra-rocketio-0.3.1 lib/sinatra-rocketio/helpers.rb
sinatra-rocketio-0.3.0 lib/sinatra-rocketio/helpers.rb
sinatra-rocketio-0.2.6 lib/sinatra-rocketio/helpers.rb
sinatra-rocketio-0.2.5 lib/sinatra-rocketio/helpers.rb
sinatra-rocketio-0.2.4 lib/sinatra-rocketio/helpers.rb
sinatra-rocketio-0.2.3 lib/sinatra-rocketio/helpers.rb
sinatra-rocketio-0.2.2 lib/sinatra-rocketio/helpers.rb
sinatra-rocketio-0.2.1 lib/sinatra-rocketio/helpers.rb
sinatra-rocketio-0.2.0 lib/sinatra-rocketio/helpers.rb
sinatra-rocketio-0.1.2 lib/sinatra-rocketio/helpers.rb
sinatra-rocketio-0.1.1 lib/sinatra-rocketio/helpers.rb
sinatra-rocketio-0.1.0 lib/sinatra-rocketio/helpers.rb
sinatra-rocketio-0.0.9 lib/sinatra-rocketio/helpers.rb
sinatra-rocketio-0.0.8 lib/sinatra-rocketio/helpers.rb
sinatra-rocketio-0.0.7 lib/sinatra-rocketio/helpers.rb
sinatra-rocketio-0.0.6 lib/sinatra-rocketio/helpers.rb
sinatra-rocketio-0.0.5 lib/sinatra-rocketio/helpers.rb
sinatra-rocketio-0.0.4 lib/sinatra-rocketio/helpers.rb