diff --git a/lib/the_moderator/model.rb b/lib/the_moderator/model.rb index bb49fbd..82ada13 100644 --- a/lib/the_moderator/model.rb +++ b/lib/the_moderator/model.rb @@ -14,7 +14,7 @@ module TheModerator def moderate(*moderated_attributes) data = moderation_data(*moderated_attributes) moderations.build(data: {attributes: data[:data]}, - data_display: data[:data_display]) unless data.empty? + data_display: data[:data_display]) unless data[:data].empty? end def moderated?(attr_name)