Method: AppyantraAdmin::ApplicationController#asset_display_name

Defined in:
app/controllers/appyantra_admin/application_controller.rb

#asset_display_name(asset) ⇒ Object



24
25
26
27
# File 'app/controllers/appyantra_admin/application_controller.rb', line 24

def asset_display_name(asset)
  field_name = asset.class.column_names[1]
  asset[field_name]
end