Sha256: fd65511dfd16781c7b175f5b9d95cc9ab43b5c11a413b92f1e88dc3c4682e3d4
Contents?: true
Size: 662 Bytes
Versions: 2
Compression:
Stored size: 662 Bytes
Contents
module Guilded::Rails module ViewHelpers def jquery_include_tag( options={} ) version = options.fetch( :version, Guilded.configuration.jquery_version ) min = options.fetch( :min, false ) raw "<script src=\"#{jquery_url( version, min )}\" type=\"text/javascript\"></script>" end def jquery_url( version, min ) %w(development test cucumber).include?( Guilded.configuration.environment.to_s ) ? Guilded.configuration.local_jquery_name( version, min ) : Guilded.configuration.jquery_google_url( version ) end def apply_guilded_behavior raw guilded.javascript_initializer end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
guilded-2.0.0 | lib/guilded/rails/view_helpers.rb |
guilded-2.0.0.pre | lib/guilded/rails/view_helpers.rb |