class Inform < ActiveRecord::Base # attr_accessible :title, :body default_scope :order => 'created_at desc' has_many :attachments, :dependent => :destroy acts_as_attachable end