Check if model options have verbose key
parent
2d60760bb1
commit
bbc47fd82f
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue