Sha256: e7d09dcef578537647d49f4c4e84a74d3a2374293a0efc9ebfd9769f5df07109

Contents?: true

Size: 276 Bytes

Versions: 58

Compression:

Stored size: 276 Bytes

Contents

module Hyrax
  # Mailer for contacting the administrator
  class ContactMailer < ActionMailer::Base
    def contact(contact_form)
      @contact_form = contact_form
      # Check for spam
      return if @contact_form.spam?
      mail(@contact_form.headers)
    end
  end
end

Version data entries

58 entries across 58 versions & 2 rubygems

Version Path
hyrax-2.9.6 app/mailers/hyrax/contact_mailer.rb
hyrax-2.9.5 app/mailers/hyrax/contact_mailer.rb
hyrax-2.9.4 app/mailers/hyrax/contact_mailer.rb
hyrax-2.9.3 app/mailers/hyrax/contact_mailer.rb
hyrax-2.9.2 app/mailers/hyrax/contact_mailer.rb
hyrax-2.9.1 app/mailers/hyrax/contact_mailer.rb
hyrax-2.9.0 app/mailers/hyrax/contact_mailer.rb
hyrax-2.8.0 app/mailers/hyrax/contact_mailer.rb
hyrax-2.7.2 app/mailers/hyrax/contact_mailer.rb
hyrax-2.7.1 app/mailers/hyrax/contact_mailer.rb
hyrax-2.7.0 app/mailers/hyrax/contact_mailer.rb
hyrax-2.6.0 app/mailers/hyrax/contact_mailer.rb
hyrax-3.0.0.pre.rc1 app/mailers/hyrax/contact_mailer.rb
hyrax-3.0.0.pre.beta3 app/mailers/hyrax/contact_mailer.rb
hyrax-2.5.1 app/mailers/hyrax/contact_mailer.rb
hyrax-2.5.0 app/mailers/hyrax/contact_mailer.rb
hyrax-3.0.0.pre.beta2 app/mailers/hyrax/contact_mailer.rb
hyrax-2.4.1 app/mailers/hyrax/contact_mailer.rb
hyrax-3.0.0.pre.beta1 app/mailers/hyrax/contact_mailer.rb
hyrax-2.4.0 app/mailers/hyrax/contact_mailer.rb