Sha256: 20a1c95a1d611ba5c82452d67a552d1d13f4caf973a083269aa884da1bcdf928

Contents?: true

Size: 423 Bytes

Versions: 2

Compression:

Stored size: 423 Bytes

Contents

##
# Delivers the BlueLightSpecial.deliver_mimi_change_password to the requested 
# User by +id+ as an asynchronous process.
# 
class DeliverChangePasswordJob
  
  attr_reader :user_id
  
  def initialize(user_id)
    @user_id = user_id.kind_of?(User) ? user_id.id : user_id
  end
  
  def perform
    if user = User.find_by_id(@user_id)
      BlueLightSpecialMailer.deliver_mimi_change_password(user)
    end
  end
  
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
blue_light_special-0.2.1 app/models/deliver_change_password_job.rb
blue_light_special-0.2.0 app/models/deliver_change_password_job.rb