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
mrg
[pettanr/pettanr.git]
/
app
/
controllers
/
application_controller.rb
diff --git
a/app/controllers/application_controller.rb
b/app/controllers/application_controller.rb
index
f5c7062
..
bbdd2e8
100644
(file)
--- a/
app/controllers/application_controller.rb
+++ b/
app/controllers/application_controller.rb
@@
-180,7
+180,7
@@
class ApplicationController < ActionController::Base
end
def show_json_format_for_root format
- format.json { render json: @item.
attributes.
to_json(@my_model_class.show_json_opt_for_root) }
+ format.json { render json: @item.to_json(@my_model_class.show_json_opt_for_root) }
end
def set_new