Sha256: 418262ab197de11c000b39cebc2eeb9b2696829aec25991612b3f1d08df09b04

Contents?: true

Size: 370 Bytes

Versions: 37

Compression:

Stored size: 370 Bytes

Contents

# frozen_string_literal: true

module Effective
  module TableRows
    class ArticleEditor < Effective::TableRow

      def content
        return unless value.present?

        value_to_s = value.to_s

        if value_to_s.include?('</')
          value_to_s.html_safe
        else
          template.simple_format(value_to_s)
        end
      end

    end
  end
end

Version data entries

37 entries across 37 versions & 1 rubygems

Version Path
effective_bootstrap-1.19.13 app/models/effective/table_rows/article_editor.rb
effective_bootstrap-1.19.12 app/models/effective/table_rows/article_editor.rb
effective_bootstrap-1.19.11 app/models/effective/table_rows/article_editor.rb
effective_bootstrap-1.19.10 app/models/effective/table_rows/article_editor.rb
effective_bootstrap-1.19.9 app/models/effective/table_rows/article_editor.rb
effective_bootstrap-1.19.8 app/models/effective/table_rows/article_editor.rb
effective_bootstrap-1.19.7 app/models/effective/table_rows/article_editor.rb
effective_bootstrap-1.19.6 app/models/effective/table_rows/article_editor.rb
effective_bootstrap-1.19.5 app/models/effective/table_rows/article_editor.rb
effective_bootstrap-1.19.4 app/models/effective/table_rows/article_editor.rb
effective_bootstrap-1.19.3 app/models/effective/table_rows/article_editor.rb
effective_bootstrap-1.19.2 app/models/effective/table_rows/article_editor.rb
effective_bootstrap-1.19.1 app/models/effective/table_rows/article_editor.rb
effective_bootstrap-1.19.0 app/models/effective/table_rows/article_editor.rb
effective_bootstrap-1.18.7 app/models/effective/table_rows/article_editor.rb
effective_bootstrap-1.18.4 app/models/effective/table_rows/article_editor.rb
effective_bootstrap-1.18.3 app/models/effective/table_rows/article_editor.rb
effective_bootstrap-1.18.2 app/models/effective/table_rows/article_editor.rb
effective_bootstrap-1.18.1 app/models/effective/table_rows/article_editor.rb
effective_bootstrap-1.18.0 app/models/effective/table_rows/article_editor.rb