fixed rubocop issues.
This commit is contained in:
parent
6a733396f9
commit
0f2b0fc7bb
6 changed files with 7 additions and 8 deletions
|
@ -4,7 +4,7 @@ require 'facebook'
|
|||
|
||||
class Channel::Driver::Facebook
|
||||
|
||||
def fetch (adapter_options, channel)
|
||||
def fetch (_adapter_options, channel)
|
||||
|
||||
@channel = channel
|
||||
@facebook = Facebook.new( @channel[:options] )
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
class Channel::Driver::Twitter
|
||||
|
||||
def fetch (adapter_options, channel)
|
||||
def fetch (_adapter_options, channel)
|
||||
|
||||
@channel = channel
|
||||
@tweet = Tweet.new( @channel[:options][:auth] )
|
||||
|
|
|
@ -4,9 +4,9 @@ class UpdateChannel < ActiveRecord::Migration
|
|||
add_column :email_addresses, :channel_id, :integer, null: true
|
||||
EmailAddress.reset_column_information
|
||||
|
||||
channel = Channel.find_by(area: 'Email::Inbound')
|
||||
channel_inbound = Channel.find_by(area: 'Email::Inbound')
|
||||
EmailAddress.all.each {|email_address|
|
||||
email_address.channel_id = channel.id
|
||||
email_address.channel_id = channel_inbound.id
|
||||
email_address.save
|
||||
}
|
||||
|
||||
|
|
|
@ -310,8 +310,8 @@ returns on fail
|
|||
driver_class = Object.const_get("Channel::Driver::#{adapter.to_classname}")
|
||||
driver_instance = driver_class.new
|
||||
driver_instance.send(
|
||||
params[:options],
|
||||
mail,
|
||||
params[:options],
|
||||
mail,
|
||||
)
|
||||
rescue => e
|
||||
|
||||
|
|
|
@ -61,7 +61,6 @@ or
|
|||
else
|
||||
subject = params[:subject]
|
||||
end
|
||||
puts "VERIFY #{subject.inspect}/#{params[:sender]}"
|
||||
result = EmailHelper::Probe.outbound(params[:outbound], params[:sender], subject)
|
||||
|
||||
# looking for verify email
|
||||
|
|
|
@ -32,7 +32,7 @@ class FacebookTest < ActiveSupport::TestCase
|
|||
}
|
||||
|
||||
# add channel
|
||||
current = Channel.where( adapter: 'Facebook' )
|
||||
current = Channel.where(area: 'Facebook::Account')
|
||||
current.each(&:destroy)
|
||||
Channel.create(
|
||||
area: 'Facebook::Account',
|
||||
|
|
Loading…
Reference in a new issue