Sha256: 6e5c2c2c4930dd49ce4596a1579273e486064f75c36f6a064c0c7356a2f83a52
Contents?: true
Size: 268 Bytes
Versions: 2
Compression:
Stored size: 268 Bytes
Contents
module HalfPipeHelper def requirejs_include_tag(script, options={}) root = if Rails.application.config.half_pipe.serve_assets then "components/requirejs" else "scripts" end javascript_include_tag "/#{root}/require.js", { data: { main: script } } end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
half-pipe-0.2.0 | app/helpers/half_pipe_helper.rb |
half-pipe-0.1.0 | app/helpers/half_pipe_helper.rb |