Skip to content

Commit

Permalink
nothing
Browse files Browse the repository at this point in the history
  • Loading branch information
ecoologic committed Oct 8, 2011
1 parent 5669679 commit 251eaae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/announcement.rb
Expand Up @@ -3,7 +3,7 @@ class Announcement < ActiveRecord::Base

validates_presence_of :message, :starts_at, :ends_at

# e.g.: Announcement[1] 15/09/2011 - 19:27:00 .. 15/09/2011 - 23:27:00: fooooooooo
# eg: Announcement[1] 15/09/2011 - 19:27:00 .. 15/09/2011 - 23:27:00: fooooooooo
def to_s
"Announcement[#{id}] #{starts_at.to_s :datetime} .. #{ends_at.to_s :datetime}: #{message}"
end
Expand Down

0 comments on commit 251eaae

Please sign in to comment.