Permalink
Browse files

fix raw web view of Tmdb data

  • Loading branch information...
1 parent a798bee commit b29548e179000fb4eafc0b171896914f2a9224ed @mislav committed Apr 15, 2012
Showing with 1 addition and 3 deletions.
  1. +1 −3 app/controllers/movies_controller.rb
@@ -64,9 +64,7 @@ def raw
@data = case params[:kind]
when 'tmdb'
resp = Tmdb.get_raw(:movie_info, tmdb_id: @movie.tmdb_id)
- data = resp.body.first
- data['posters'].sort_by! {|p| p['image']['width'].to_i }
- data
+ resp.body
else
render text: "Unsupported kind.", status: 400
end

0 comments on commit b29548e

Please sign in to comment.