Sha256: c2234915f3c1bbe9ef12edc39a496f54d0b23bf18228ec41460a1bdfdc1e8e24

Contents?: true

Size: 348 Bytes

Versions: 1

Compression:

Stored size: 348 Bytes

Contents

# frozen_string_literal: true

module Effective
  module TableRows
    class ArticleEditor < Effective::TableRow

      def content
        return unless value.present?

        if value.start_with?('<') && value.end_with?('>')
          value.html_safe
        else
          template.simple_format(value)
        end
      end

    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
effective_bootstrap-1.15.1 app/models/effective/table_rows/article_editor.rb