Method: AdminAssistant::AssociationTarget#assoc_value
- Defined in:
- lib/admin_assistant/association_target.rb
#assoc_value(assoc_value) ⇒ Object
7 8 9 10 11 12 13 |
# File 'lib/admin_assistant/association_target.rb', line 7 def assoc_value(assoc_value) if assoc_value.respond_to?(:name_for_admin_assistant) assoc_value.name_for_admin_assistant elsif assoc_value && default_name_method assoc_value.send default_name_method end end |