OSDN Git Service
(root)
/
pettanr
/
pettanr.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
t#29671:fix my panel list as json
[pettanr/pettanr.git]
/
app
/
controllers
/
home_controller.rb
diff --git
a/app/controllers/home_controller.rb
b/app/controllers/home_controller.rb
index
9d296c1
..
0384ec4
100644
(file)
--- a/
app/controllers/home_controller.rb
+++ b/
app/controllers/home_controller.rb
@@
-86,7
+86,7
@@
class HomeController < ApplicationController
respond_to do |format|
format.html # index.html.erb
- format.json { render
json: @panels.to_json(
) }
+ format.json { render
text: Panel.list_as_json_text(@panels
) }
end
end