Sha256: 2d72a5347a4d04e96d7987712001b141b90322dd7f82cc23a0df8f4c00635e2f

Contents?: true

Size: 195 Bytes

Versions: 12

Compression:

Stored size: 195 Bytes

Contents

module Admin::Resources::DataTypes::TextHelper

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

end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
typus-3.1.0.rc18 app/helpers/admin/resources/data_types/text_helper.rb
typus-3.1.0.rc17 app/helpers/admin/resources/data_types/text_helper.rb
typus-3.1.0.rc16 app/helpers/admin/resources/data_types/text_helper.rb
typus-3.1.0.rc15 app/helpers/admin/resources/data_types/text_helper.rb
typus-3.1.0.rc14 app/helpers/admin/resources/data_types/text_helper.rb
typus-3.1.0.rc13 app/helpers/admin/resources/data_types/text_helper.rb
typus-3.1.0.rc12 app/helpers/admin/resources/data_types/text_helper.rb
typus-3.1.0.rc11 app/helpers/admin/resources/data_types/text_helper.rb
typus-3.1.0.rc10 app/helpers/admin/resources/data_types/text_helper.rb
typus-3.1.0.rc9 app/helpers/admin/resources/data_types/text_helper.rb
typus-3.1.0.rc8 app/helpers/admin/resources/data_types/text_helper.rb
typus-3.1.0.rc7 app/helpers/admin/resources/data_types/text_helper.rb