gitcoinco/code_fund_ads

View on GitHub
app/models/concerns/creatives/presentable.rb

Summary

Maintainability
A
0 mins
Test Coverage
module Creatives
  module Presentable
    extend ActiveSupport::Concern

    def analytics_key
      [id, name].compact.join ": "
    end

    def sanitized_headline
      sanitize_value headline
    end

    def sanitized_body
      sanitize_value body
    end
  end
end