Module: Para::ExportsHelper
- Included in:
- ApplicationHelper
- Defined in:
- app/helpers/para/exports_helper.rb
Instance Method Summary collapse
Instance Method Details
#export_name_for(model, export) ⇒ Object
3 4 5 6 7 8 9 |
# File 'app/helpers/para/exports_helper.rb', line 3 def export_name_for(model, export) model_name = ( export[:model] && export[:model].constantize.model_name.human ) || model.model_name.human t('para.export.name', name: model_name) end |