mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
Add comment about displaying associated model object name in _object_changes
This commit is contained in:
parent
1c42bf92c0
commit
5100bf4c13
1 changed files with 3 additions and 0 deletions
|
|
@ -17,6 +17,9 @@
|
|||
%tr
|
||||
%td= attribute
|
||||
|
||||
/ If the attribute is an associated model, show the value of the record it corresponds to, not just the ID.
|
||||
/ Eg. when the version is of an Event, if the attribute is event_type_id it shows
|
||||
/ Workshop (ID: 116) instead of just 116
|
||||
- if attribute.include?('_id')
|
||||
- model_name = attribute.chomp('_id').camelize
|
||||
- if version.event != 'create'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue