Sha256: 3e446025396e52856f35b73772bd92392e77cf179abd630a808beaaed16e857c
Contents?: true
Size: 520 Bytes
Versions: 23
Compression:
Stored size: 520 Bytes
Contents
module CopyTunerClient class Copyray # This: # message # Becomes: # <!--COPYRAY views.home.index.message-->message def self.augment_template(source, key) augmented = if source.present? escape = CopyTunerClient.configuration.html_escape && !source.html_safe? "<!--COPYRAY #{key}-->#{escape ? ERB::Util.html_escape(source) : source}" else source end augmented.html_safe end end end
Version data entries
23 entries across 23 versions & 1 rubygems