Check if model options have verbose key
This commit is contained in:
parent
2d60760bb1
commit
bbc47fd82f
@ -36,6 +36,7 @@ module RailsBigBrother
|
|||||||
unless changed_fields.empty?
|
unless changed_fields.empty?
|
||||||
changed_fields_string = changed_fields.map do |f|
|
changed_fields_string = changed_fields.map do |f|
|
||||||
f + (
|
f + (
|
||||||
|
self.class.big_brother_options.has_key?(:verbose) &&
|
||||||
self.class.big_brother_options[:verbose].include?(f) ? ":#{send(f)}" : '')
|
self.class.big_brother_options[:verbose].include?(f) ? ":#{send(f)}" : '')
|
||||||
end.join(',')
|
end.join(',')
|
||||||
big_brother_log 'update', changed_fields_string
|
big_brother_log 'update', changed_fields_string
|
||||||
|
Loading…
x
Reference in New Issue
Block a user