Sha256: e30778639ae7ef74ac400ef85388c99f588c0aa2359ba7e07b9e3643243b4562

Contents?: true

Size: 488 Bytes

Versions: 3

Compression:

Stored size: 488 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}/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

3 entries across 3 versions & 1 rubygems

Version Path
jquery-rails-google-cdn-0.0.6 lib/jquery-rails-google-cdn/view_helpers.rb
jquery-rails-google-cdn-0.0.5 lib/jquery-rails-google-cdn/view_helpers.rb
jquery-rails-google-cdn-0.0.4 lib/jquery-rails-google-cdn/view_helpers.rb