-
- Downloads
Refactor: replace "render :json = graph.to_json" to view template(show.json.erb).
Because model shouldn't know about view logic.
parent
9dc46eee
No related branches found
No related tags found
Showing
- app/controllers/graph_controller.rb 7 additions, 10 deletionsapp/controllers/graph_controller.rb
- app/helpers/graph_helper.rb 5 additions, 0 deletionsapp/helpers/graph_helper.rb
- app/models/graph/commit.rb 1 addition, 21 deletionsapp/models/graph/commit.rb
- app/models/graph/json_builder.rb 0 additions, 7 deletionsapp/models/graph/json_builder.rb
- app/views/graph/show.json.erb 26 additions, 0 deletionsapp/views/graph/show.json.erb
app/helpers/graph_helper.rb
0 → 100644
app/views/graph/show.json.erb
0 → 100644
Please register or sign in to comment