Sha256: 19614f4550d1153bc83faccb9165e3c0c8a3121fdf30a3a3a9bacc342744df0e
Contents?: true
Size: 404 Bytes
Versions: 3
Compression:
Stored size: 404 Bytes
Contents
class Inquiry < ActiveRecord::Base validates_presence_of :name validates_format_of :email, :with => /^([^@\s]+)@((?:[-a-z0-9]+\.)+[a-z]{2,})$/i, :message => 'must be valid' acts_as_indexed :fields => [:name, :email, :message, :phone], :index_file => [Rails.root.to_s, "tmp", "index"] default_scope :order => 'created_at DESC' end
Version data entries
3 entries across 3 versions & 1 rubygems