Sha256: c9fb926c4a83f1715d21e4cc72e98c4071c69771902727cd778f8effeeaba601

Contents?: true

Size: 351 Bytes

Versions: 1

Compression:

Stored size: 351 Bytes

Contents

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

1 entries across 1 versions & 1 rubygems

Version Path
rademade_admin-0.0.1 app/helpers/rademade_admin/name_helper.rb