class Sprockets::SafetyColons


environment.unregister_postprocessor ‘application/javascript’, Sprockets::SafetyColons
This behavior can be disabled with:
end of the file.
The ‘SafetyColons` processor will insert missing semicolons to the
the module pattern usually leads to syntax errors.
For JS developers who are colonfobic, concatenating JS files using

def evaluate(context, locals, &block)

def evaluate(context, locals, &block)
  # If the file is blank or ends in a semicolon, leave it as is
  if data =~ /\A\s*\Z/m || data =~ /;\s*\Z/m
    data
  else
    # Otherwise, append a semicolon and newline
    "#{data};\n"
  end
end

def prepare

def prepare
end