You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
415 B
16 lines
415 B
json.sinner current_user.email
|
|
|
|
json.transgressions(@transgressions) do |trans|
|
|
|
|
json.id trans.id
|
|
json.sin_type trans.sin_type
|
|
json.description trans.description
|
|
json.authored_at time_ago_in_words(trans.created_at) + " ago"
|
|
|
|
json.confessions(trans.confessions) do |conf|
|
|
json.id conf.id
|
|
json.description conf.description
|
|
json.occurred_at time_ago_in_words(conf.occurred_at) + " ago"
|
|
end
|
|
end
|