Project

General

Profile

« Previous | Next » 

Revision c007f069

Added by Dominic Cleal about 10 years ago

fixes #1902 - audit changes to lookup keys and values/overrides

(cherry picked from commit 971fee795383d2f7dc757a91ceb46bd693e20a4d)

View differences:

app/models/lookup_value.rb
class LookupValue < ActiveRecord::Base
include Authorizable
audited :associated_with => :lookup_key, :allow_mass_assignment => true
belongs_to :lookup_key, :counter_cache => true
validates :match, :presence => true, :uniqueness => {:scope => :lookup_key_id}
delegate :key, :to => :lookup_key

Also available in: Unified diff