Sha256: 5d4a86a8fdce78a41ee9d628964f516807cdb9ecf4829eecd6406dbbac52fd5e
Contents?: true
Size: 591 Bytes
Versions: 2
Compression:
Stored size: 591 Bytes
Contents
module Exvo module ViewHelpers # special link starting with '//' in production so that the webserver can choose between HTTP and HTTPS def javascript_bundle_include_tag(bundle) case Exvo::Helpers.env.to_sym when :production javascript_include_tag "//#{ Exvo::Helpers.cdn_host }/javascripts/#{bundle}.js" when :staging javascript_include_tag "http://#{ Exvo::Helpers.cdn_host }/javascripts/#{bundle}.js" else javascript_include_tag "http://#{ Exvo::Helpers.cdn_host }/javascripts/bundles/#{bundle}.js" end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
exvo_helpers-0.0.4 | lib/exvo_helpers/view_helpers.rb |
exvo_helpers-0.0.3 | lib/exvo_helpers/view_helpers.rb |