Sha256: 90d69d498af9d4449bcf66c5659a9980cf4014d2f9e419aaaa6eb0879248c3e7
Contents?: true
Size: 379 Bytes
Versions: 2
Compression:
Stored size: 379 Bytes
Contents
# -*- encoding : utf-8 -*- module RademadeAdmin::NameHelper def admin_list_name(model_info = @model_info, suffix = true) list_name = model_info.item_name if suffix list_name += ' list' else list_name = list_name.pluralize end list_name end def admin_add_name(model_info = @model_info) "Add #{model_info.item_name.downcase}" end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rademade_admin-0.0.3 | app/helpers/rademade_admin/name_helper.rb |
rademade_admin-0.0.2 | app/helpers/rademade_admin/name_helper.rb |