class SubscriptionMailer < ActionMailer::Base
  helper :application
  default from: "updates@skillshare.im", reply_to: ENV["SUPPORT_EMAIL"]

  def updates(subscription)
    @user = subscription.user
    @offers = Offer.where created_at: subscription.period
    @wanteds = Wanted.where created_at: subscription.period
    @subscription = subscription
    mail(to: @user.email, subject: "New offers and wanteds on Skillshare.im")
  end
end

class SubscriptionMailer < ActionMailer::Base
  helper :application
  default from: "updates@skillshare.im", reply_to: ENV["SUPPORT_EMAIL"]

  def updates(subscription)
    @user = subscription.user
    @offers = Offer.where created_at: subscription.period
    @wanteds = Wanted.where created_at: subscription.period
    @subscription = subscription
    mail(to: @user.email, subject: "New offers and requests on Skillshare.im")
  end
end

Change "wanteds" to "requests" in e-mail.
Change "wanteds" to "requests" in e-mail.
