64
65
66
67
68
69
70
71
72
73
|
# File 'app/mailers/wco_email/application_mailer.rb', line 64
def shared_galleries profiles, gallery
return if profiles.count == 0
@gallery = gallery
@domain = Rails.application.config.action_mailer.default_url_options[:host]
@galleries_path = IshManager::Engine.routes.url_helpers.galleries_path
@gallery_path = IshManager::Engine.routes.url_helpers.gallery_path(@gallery.slug)
mail( :to => '[email protected]',
:bcc => profiles.map { |p| p.email },
:subject => 'You got new shared galleries on pi manager' )
end
|