remove unneeded respond_with

This commit is contained in:
Devin Howard 2016-09-28 22:45:44 +08:00
parent f92ff3283d
commit e6b95ec42b

View file

@ -19,9 +19,6 @@ class MapsController < ApplicationController
@allmappings = policy_scope(@map.mappings)
@allmessages = @map.messages.sort_by(&:created_at)
@allstars = @map.stars
respond_with(@allmappers, @allcollaborators, @allmappings, @allsynapses,
@alltopics, @allmessages, @allstars, @map)
end
format.json { render json: @map }
format.csv { redirect_to action: :export, format: :csv }