Use name/title instead of ID for associated object when showing changes
This commit is contained in:
parent
c7b8418f1a
commit
b982d18bbb
4 changed files with 34 additions and 6 deletions
|
|
@ -3,7 +3,7 @@ class Role < ActiveRecord::Base
|
|||
has_many :users_roles
|
||||
has_many :users, through: :users_roles
|
||||
|
||||
has_paper_trail on: [:update], only: [:name, :description], meta: { conference_id: :resource_id }
|
||||
has_paper_trail on: [:create, :update], only: [:name, :description], meta: { conference_id: :resource_id }
|
||||
|
||||
before_destroy :cancel
|
||||
scopify
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue