Sha256: a6c18a739812f0a9681e27a5b447c0806a67e47d2afafa9b7a1c301bbf463590

Contents?: true

Size: 241 Bytes

Versions: 34

Compression:

Stored size: 241 Bytes

Contents

class Contact < ActiveRecord::Base
  attr_accessible :name, :email, :message

  after_create :send_email

  validates_presence_of :name, :email, :message

  validates_email :email

  def send_email
    Mailer.message(self).deliver
  end
end

Version data entries

34 entries across 34 versions & 1 rubygems

Version Path
sbdevcore-0.3.8 app/models/contact.rb
sbdevcore-0.3.7 app/models/contact.rb
sbdevcore-0.3.6 app/models/contact.rb
sbdevcore-0.3.5 app/models/contact.rb
sbdevcore-0.3.4 app/models/contact.rb
sbdevcore-0.3.3 app/models/contact.rb
sbdevcore-0.3.2 app/models/contact.rb
sbdevcore-0.3.1 app/models/contact.rb
sbdevcore-0.3.0 app/models/contact.rb
sbdevcore-0.2.26 app/models/contact.rb
sbdevcore-0.2.25 app/models/contact.rb
sbdevcore-0.2.24 app/models/contact.rb
sbdevcore-0.2.23 app/models/contact.rb
sbdevcore-0.2.22 app/models/contact.rb
sbdevcore-0.2.21 app/models/contact.rb
sbdevcore-0.2.20 app/models/contact.rb
sbdevcore-0.2.19 app/models/contact.rb
sbdevcore-0.2.18 app/models/contact.rb
sbdevcore-0.2.17 app/models/contact.rb
sbdevcore-0.2.16 app/models/contact.rb