blob: b5a2c9f0e8ebfad500fa26480711b0e3f5bc0af0 [file] [log] [blame]
#!/usr/bin/env ruby
# Provide access to Status.notice method from Javascript
$LOAD_PATH.unshift '/srv/whimsy/lib'
require 'wunderbar'
require 'whimsy/asf/status'
noticetext, noticepath, noticeclass = Status.notice
_json do
if noticetext
{noticetext: noticetext, noticepath: noticepath, noticeclass: noticeclass}
else
{noticetext: nil}
end
end