This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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!" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
email: [email protected] |