Sha256: 2a9d05b604db760fe28d3aa0b40a275ae0b36be743abbbb93c9bc497b033ee09
Contents?: true
Size: 379 Bytes
Versions: 4
Compression:
Stored size: 379 Bytes
Contents
module HalfPipeHelper def requirejs_include_tag(script, options={}) script, options = if Rails.application.config.half_pipe.serve_assets ["/components/requirejs/require.js", { data: { main: "/scripts/application.js" } }] else ["/scripts/application.js", {}] end javascript_include_tag script, options end end
Version data entries
4 entries across 4 versions & 1 rubygems