Skip to content

Instantly share code, notes, and snippets.

View johanbrook's full-sized avatar
🌴

Johan Brook johanbrook

🌴
View GitHub Profile
def next_message(messages)
begin
debugger
message = messages.queued.next
date = message.arrived_at
rescue NoMethodError => e
date = nil
message = new_message_path
end
date = date ? " in #{time_ago_in_words(date)}" : "when you write one!"