make json readable

This commit is contained in:
Rueshyna committed 2012-11-09 16:24:37 +08:00
1 parent 624d12de6d
commit e4de229b22
1 file changed
+3 -1
@@ -50,7 +50,9 @@ class Panel::Announcement::BackEnd::BulletinsController < OrbitBackendController
}
end
end
render :json => @data.to_json
#render :json => @data.to_json
#to print readable json
render :json => JSON.pretty_generate(@data)
end
def index