Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tree: 526ccfa72d
Fetching contributors…

Cannot retrieve contributors at this time

12 lines (9 sloc) 0.178 kB
class Announcement < ActiveRecord::Base
attr_accessible :body
def self.current
first(:order => 'created_at DESC') || new
end
def exists?
!new_record?
end
end
Jump to Line
Something went wrong with that request. Please try again.