Sha256: 68a2ab0e6aacea5584a6f1d59e5a800cf755b5b872d28e49033dbd23ffbd5db0
Contents?: true
Size: 1.04 KB
Versions: 1
Compression:
Stored size: 1.04 KB
Contents
module Juggernaut # :nodoc: module Rails module Helpers def juggernaut(options = {}) random_host = Juggernaut::Rails.random_host options = { :host => (random_host[:public_host] || random_host[:host]), :port => (random_host[:public_port] || random_host[:port]), :width => '0px', :height => '0px', :session_id => request.session_options[:id], :swf_address => "/juggernaut/juggernaut.swf", :ei_swf_address => "/juggernaut/expressinstall.swf", :flash_version => 8, :flash_color => "#fff", :swf_name => "juggernaut_flash", :bridge_name => "juggernaut", :debug => (RAILS_ENV == 'development'), :reconnect_attempts => 3, :reconnect_intervals => 3 }.merge(options) javascript_tag "new Juggernaut(#{options.to_json});" end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
juggernaut_rails-0.5.9 | lib/juggernaut/rails/helpers.rb |