Skip to content
This repository has been archived by the owner on Dec 27, 2022. It is now read-only.

Commit

Permalink
adding more metadata to ephemerals
Browse files Browse the repository at this point in the history
  • Loading branch information
lusis committed May 17, 2011
1 parent 38e3fc1 commit b3fc82d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/noah/routes/ephemerals.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class Noah::App
e = Noah::Ephemeral.find_or_create(opts)
if e.valid?
action = e.is_new? ? "create" : "update"
r = {"action" => action, "result" => "success", "id" => e.id, "path" => e.path, "data" => e.data}
r = {"action" => action, "result" => "success", "id" => e.id, "path" => e.path, "data" => e.data, "created_at" => e.created_at, "updated_at" => e.updated_at}
r.to_json
else
raise "#{format_errors(e)}"
Expand Down

0 comments on commit b3fc82d

Please sign in to comment.