Check if model options have verbose key

master
Guillaume DOTT 2013-05-29 11:46:31 +02:00
parent 2d60760bb1
commit bbc47fd82f
1 changed files with 1 additions and 0 deletions

View File

@ -36,6 +36,7 @@ module RailsBigBrother
unless changed_fields.empty?
changed_fields_string = changed_fields.map do |f|
f + (
self.class.big_brother_options.has_key?(:verbose) &&
self.class.big_brother_options[:verbose].include?(f) ? ":#{send(f)}" : '')
end.join(',')
big_brother_log 'update', changed_fields_string