Refactor: replace "render :json = graph.to_json" to view template(show.json.erb).
Because model shouldn't know about view logic.
Showing
app/helpers/graph_helper.rb
0 → 100644
Please register or sign in to comment
Because model shouldn't know about view logic.