Skip to content

Instantly share code, notes, and snippets.

View johanbrook's full-sized avatar
🌴

Johan Brook johanbrook

🌴
View GitHub Profile
@johanbrook
johanbrook / gist:1456778
Created December 10, 2011 22:33
invite
email: johan.jvb@gmail.com
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!"