Sha256: 4ac8b48ef27e1a4bd359b5745686e6882b85059eeec40f8ebd5ad90a5498bce4

Contents?: true

Size: 458 Bytes

Versions: 10

Compression:

Stored size: 458 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?
                    "<!--COPYRAY #{key}-->#{source}"
                  else
                    source
                  end
      ActiveSupport::SafeBuffer === source ? ActiveSupport::SafeBuffer.new(augmented) : augmented
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
copy_tuner_client-0.4.11 lib/copy_tuner_client/copyray.rb
copy_tuner_client-0.4.10 lib/copy_tuner_client/copyray.rb
copy_tuner_client-0.4.9 lib/copy_tuner_client/copyray.rb
copy_tuner_client-0.4.8 lib/copy_tuner_client/copyray.rb
copy_tuner_client-0.4.7 lib/copy_tuner_client/copyray.rb
copy_tuner_client-0.4.6 lib/copy_tuner_client/copyray.rb
copy_tuner_client-0.4.5 lib/copy_tuner_client/copyray.rb
copy_tuner_client-0.4.4 lib/copy_tuner_client/copyray.rb
copy_tuner_client-0.4.3 lib/copy_tuner_client/copyray.rb
copy_tuner_client-0.4.2 lib/copy_tuner_client/copyray.rb