Sha256: e2ab2e2d2e5b282cceb060663cc43a8179306dd45688241f64e15bc08d1bd66d
Contents?: true
Size: 515 Bytes
Versions: 8
Compression:
Stored size: 515 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
8 entries across 8 versions & 2 rubygems