11 lines
282 B
Ruby
11 lines
282 B
Ruby
class ProductMailer < ApplicationMailer
|
|
# Subject can be set in your I18n file at config/locales/en.yml
|
|
# with the following lookup:
|
|
#
|
|
# en.product_mailer.in_stock.subject
|
|
#
|
|
def in_stock
|
|
@product = params[:product]
|
|
mail to: params[:subscriber].email
|
|
end
|
|
end
|