Sha256: 05f8d8835c07aba3f9cc2f48f57f7244d632451b8a8da8608629c0f097189d99

Contents?: true

Size: 181 Bytes

Versions: 25

Compression:

Stored size: 181 Bytes

Contents

module Admin::Resources::DataTypes::TextHelper

  def table_text_field(attribute, item)
    (raw_content = item.send(attribute)).present? ? truncate(raw_content) : mdash
  end

end

Version data entries

25 entries across 25 versions & 2 rubygems

Version Path
typus-3.1.3 app/helpers/admin/resources/data_types/text_helper.rb
typus-3.1.2 app/helpers/admin/resources/data_types/text_helper.rb
typus-3.1.1 app/helpers/admin/resources/data_types/text_helper.rb
typus-3.1.0 app/helpers/admin/resources/data_types/text_helper.rb
typus-3.1.0.rc19 app/helpers/admin/resources/data_types/text_helper.rb