Sha256: c1602850b399af2aca757df71d811479cfb38d1bfe71674bc81872ba18b7ef08

Contents?: true

Size: 198 Bytes

Versions: 23

Compression:

Stored size: 198 Bytes

Contents

module TranslationsHelper
  # Just return an empty string if the given date is null
  def ldate(dt)
    dt ? dt.strftime('%d-%m-%Y') : ''
  end
  def mdate(dt)
    dt ? l(dt.to_date) : ''
  end
end

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
rich_table_component-0.0.30 app/helpers/translations_helper.rb
rich_table_component-0.0.29 app/helpers/translations_helper.rb
rich_table_component-0.0.28 app/helpers/translations_helper.rb
rich_table_component-0.0.27 app/helpers/translations_helper.rb
rich_table_component-0.0.26 app/helpers/translations_helper.rb
rich_table_component-0.0.24 app/helpers/translations_helper.rb
rich_table_component-0.0.22 app/helpers/translations_helper.rb
rich_table_component-0.0.21 app/helpers/translations_helper.rb
rich_table_component-0.0.18 app/helpers/translations_helper.rb
rich_table_component-0.0.17 app/helpers/translations_helper.rb
rich_table_component-0.0.16 app/helpers/translations_helper.rb
rich_table_component-0.0.15 app/helpers/translations_helper.rb
rich_table_component-0.0.14 app/helpers/translations_helper.rb
rich_table_component-0.0.13 app/helpers/translations_helper.rb
rich_table_component-0.0.10 app/helpers/translations_helper.rb
rich_table_component-0.0.9 app/helpers/translations_helper.rb
rich_table_component-0.0.8 app/helpers/translations_helper.rb
rich_table_component-0.0.7 app/helpers/translations_helper.rb
rich_table_component-0.0.6 app/helpers/translations_helper.rb
rich_table_component-0.0.5 app/helpers/translations_helper.rb