Sha256: 05808c8a646cb631f2878dc1fe2ea1ff56f87efaa6fda7b441ffe51485f11eb7

Contents?: true

Size: 495 Bytes

Versions: 1

Compression:

Stored size: 495 Bytes

Contents

module Jquery::Rails
  module Google
    module CDN
      module ViewHelpers
        def jquery_include_tag(version = nil)
          version ||= Jquery::Rails::JQUERY_VERSION
          [ javascript_include_tag("//ajax.googleapis.com/ajax/libs/jquery/#{version}/testme.jquery.min.js"),
            javascript_tag("window.jQuery || document.write(unescape('#{javascript_include_tag('jquery/jquery.min').gsub('<','%3C')}'))")
          ].join("\n").html_safe
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
jquery-rails-google-cdn-0.0.2 lib/jquery_rails_google_cdn/view_helpers.rb