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

Version Path
copy_tuner_client-0.14.1 lib/copy_tuner_client/copyray.rb
copy_tuner_client-0.14.0 lib/copy_tuner_client/copyray.rb
copy_tuner_client-0.13.6 lib/copy_tuner_client/copyray.rb
copy_tuner_client-0.13.5 lib/copy_tuner_client/copyray.rb
copy_tuner_client-0.13.3 lib/copy_tuner_client/copyray.rb
copy_tuner_client-0.13.2 lib/copy_tuner_client/copyray.rb
copy_tuner_client-0.13.1 lib/copy_tuner_client/copyray.rb
copy_tuner_client-0.13.0 lib/copy_tuner_client/copyray.rb
copy_tuner_client-0.12.0 lib/copy_tuner_client/copyray.rb
copy_tuner_client-0.11.0 lib/copy_tuner_client/copyray.rb
copy_tuner_client-0.10.0 lib/copy_tuner_client/copyray.rb
copy_tuner_client-0.9.0 lib/copy_tuner_client/copyray.rb
copy_tuner_client-0.8.1 lib/copy_tuner_client/copyray.rb
copy_tuner_client-0.8.0 lib/copy_tuner_client/copyray.rb
copy_tuner_client-0.7.0 lib/copy_tuner_client/copyray.rb
copy_tuner_client-0.6.2 lib/copy_tuner_client/copyray.rb
copy_tuner_client-0.6.1 lib/copy_tuner_client/copyray.rb
copy_tuner_client-0.5.3 lib/copy_tuner_client/copyray.rb
copy_tuner_client-0.5.2 lib/copy_tuner_client/copyray.rb
copy_tuner_client-0.5.1 lib/copy_tuner_client/copyray.rb