module ActionView::Helpers::AssetTagHelper
Constants
- NEIGHBORPARROT_JS_API
- NEIGHBORPARROT_JS_DUMMY_API
Public Instance Methods
neighborparrot_include_tag()
click to toggle source
URL helper for the parrot js client If :dummy_tests is true, use a dummy parrot avoiding connections with the server but triggering onconnect
# File lib/neighborparrot/helpers/url_helpers.rb, line 12 def neighborparrot_include_tag config = Neighborparrot.configuration parrot_js = config[:dummy_connections] ? NEIGHBORPARROT_JS_DUMMY_API : NEIGHBORPARROT_JS_API src = "#{config[:assets_server]}#{parrot_js}" content_tag(:script, nil, { :type => 'text/javascript', :src => src }) end