Use name/title instead of ID for associated object when showing changes

This commit is contained in:
Nishanth Vijayan 2016-08-17 02:45:10 +05:30
parent c7b8418f1a
commit b982d18bbb
4 changed files with 34 additions and 6 deletions

View file

@ -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