repo.or.cz
/
upr.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
history
|
raw
|
HEAD
JSON: set no-transform in headers
[upr.git]
/
examples
/
rails_app-2.3.4
/
app
/
controllers
/
progress_controller.rb
blob
c3ddddab578a471f8c5a6c0ffad061347e66fc17
1
class ProgressController < ApplicationController
2
def index
3
opt = {
4
:backend => $upr,
5
:frequency => 0.5,
6
:env => request.env,
7
}
8
response.headers.update(Upr::JSON::RESPONSE_HEADERS)
9
render(Upr::JSON.new(opt).rails_render_options)
10
end
11
end