Module: FreedomPatches::SprocketsPatches

Defined in:
lib/freedom_patches/sprockets_patches.rb

Class Method Summary collapse

Class Method Details

.concat_javascript_sources(buf, source) ⇒ Object



13
14
15
16
17
18
19
20
# File 'lib/freedom_patches/sprockets_patches.rb', line 13

def self.concat_javascript_sources(buf, source)
  if buf.bytesize > 0
    # CODE REMOVED HERE
    buf << ";" # unless string_end_with_semicolon?(buf)
    buf << "\n" # unless buf.end_with?("\n")
  end
  buf << source
end