Project

General

Profile

« Previous | Next » 

Revision 720d9fc7

Added by Joseph Magen about 10 years ago

fixes #5137 - audited :associated_with labels are 'N/A' for models that have a hyphen

View differences:

app/helpers/audits_helper.rb
when 'last_login_on'
change.to_s(:short)
when /.*_id$/
name.humanize.constantize.find(change).to_label
name.classify.gsub('Id','').constantize.find(change).to_label
else
change.to_s
end.truncate(50)

Also available in: Unified diff