diff --git a/app/models/channel/driver/facebook.rb b/app/models/channel/driver/facebook.rb index 5308e66eb..cc5d2c141 100644 --- a/app/models/channel/driver/facebook.rb +++ b/app/models/channel/driver/facebook.rb @@ -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] ) diff --git a/app/models/channel/driver/twitter.rb b/app/models/channel/driver/twitter.rb index dda9340df..4e268fa40 100644 --- a/app/models/channel/driver/twitter.rb +++ b/app/models/channel/driver/twitter.rb @@ -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] ) diff --git a/db/migrate/20150824000002_update_channel.rb b/db/migrate/20150824000002_update_channel.rb index a58305690..4d3fa0bbe 100644 --- a/db/migrate/20150824000002_update_channel.rb +++ b/db/migrate/20150824000002_update_channel.rb @@ -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 } diff --git a/lib/email_helper/probe.rb b/lib/email_helper/probe.rb index abb2c8db4..27608aa9d 100644 --- a/lib/email_helper/probe.rb +++ b/lib/email_helper/probe.rb @@ -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 diff --git a/lib/email_helper/verify.rb b/lib/email_helper/verify.rb index d5d3f251a..a81cb0b8e 100644 --- a/lib/email_helper/verify.rb +++ b/lib/email_helper/verify.rb @@ -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 diff --git a/test/integration/facebook_test.rb b/test/integration/facebook_test.rb index 8722d7363..398f22f73 100644 --- a/test/integration/facebook_test.rb +++ b/test/integration/facebook_test.rb @@ -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',