Sha256: a68d09d2693c710676b3516f9503e1a986189ec1dc00426177893207a00b28c4
Contents?: true
Size: 512 Bytes
Versions: 16
Compression:
Stored size: 512 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' named_scope :closed, :conditions => {:open => false} named_scope :open, :conditions => {:open => true} end
Version data entries
16 entries across 16 versions & 1 rubygems