Sha256: 3e8cda7c9f0b0c4e4ed76fb370247f3632e72c53f99c76842a8cd65ed30a339e

Contents?: true

Size: 183 Bytes

Versions: 3

Compression:

Stored size: 183 Bytes

Contents

module CitiesHelper
  def format_city_id(entry)
    if city = entry.city
      link_to city, admin_country_city_path(city.country, city)
    else
      ta(:no_entry)
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
dry_crud-1.7.0 test/templates/app/helpers/cities_helper.rb
dry_crud-1.6.0 test/templates/app/helpers/cities_helper.rb
dry_crud-1.5.0 test/templates/app/helpers/cities_helper.rb