Sha256: ac8e38b29715979ff8ff520508b2f9c653a972b0f9d814c2688f5a8c3a834a2e
Contents?: true
Size: 433 Bytes
Versions: 2
Compression:
Stored size: 433 Bytes
Contents
class WebsiteInquiry < ActiveRecord::Base attr_protected :created_at, :updated_at belongs_to :website belongs_to :created_by, :class_name => 'User', :foreign_key => 'created_by_id' validates :first_name, presence: true validates :last_name, presence: true validates :message, presence: true validates :email, presence: true, format: {with: /\A([^@\s]+)@((?:[-a-z0-9]+\.)+[a-z]{2,})\z/i, on: :create} end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
knitkit-3.2.0 | app/models/website_inquiry.rb |
knitkit-3.0.0 | app/models/website_inquiry.rb |