Skip to content

Commit

Permalink
Add to_s method to Tea Time
Browse files Browse the repository at this point in the history
  • Loading branch information
Nick Barnwell committed Sep 20, 2014
1 parent 1697191 commit 1146203
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/models/tea_time.rb
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,10 @@ def queue_followup_mails
TeaTimeMailer.delay(run_at: self.end_time).followup(self.id)
end

def to_s
"#{host.name}#{location} @ #{friendly_time}"
end

private
def use_city_timezone(&block)
unless city.nil?
Expand Down

0 comments on commit 1146203

Please sign in to comment.