class FollowerMailer < ApplicationMailer

  helper :application

  def live_effort_email(follower, split_times)
    @follower = follower
    @split_times = split_times
    @effort = split_times.first.effort
    mail(to: @follower.email, subject: "Update for #{@effort.full_name} at #{@effort.event_name}")
  end

  def interest_new_event

  end

end
class FollowerMailer < ApplicationMailer

  helper :application

  def self.live_effort_email(follower, split_times)
    @follower = follower
    @split_times = split_times
    @effort = split_times.first.effort
    puts "Sending email to #{follower.full_name}."
    mail(to: @follower.email, subject: "Update for #{@effort.full_name} at #{@effort.event_name}")
  end

end
Change live_effort_email to class method.
Change live_effort_email to class method.
