diff --git a/app/models/channel.rb b/app/models/channel.rb index 08b0c1ed4..c97236be1 100644 --- a/app/models/channel.rb +++ b/app/models/channel.rb @@ -7,7 +7,7 @@ class Channel < ApplicationModel channels = Channel.where( 'active = ? AND area LIKE ?', true, '%::Inbound' ) channels.each { |channel| begin - c = eval 'Channel::' + channel[:adapter].upcase + '.new' # rubocop:disable Lint/Eval + c = eval 'Channel::' + channel[:adapter].upcase + '.new' # rubocop:disable Lint/Eval c.fetch(channel) rescue Exception => e logger.error "can't use " + 'Channel::' + channel[:adapter].upcase