make json readable

This commit is contained in:
Rueshyna 2012-11-09 16:24:37 +08:00
parent 624d12de6d
commit e4de229b22
1 changed files with 3 additions and 1 deletions

View File

@ -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