def diffs
      params[:sort] ||= "image_file_size desc"
      @diffs = UiChanged::Screenshot.search(params[:search]).not_in_ignored.where(:diff_found => true).paginate(:page => params[:page],
                                                                                  :per_page => params[:per_page],
                                                                                  :order => params[:sort])
      @all_screenshots = []
      @diffs.each do |diff|
        control = UiChanged::Screenshot.find(diff.control_id)
        test = UiChanged::Screenshot.find(diff.test_id)
        @all_screenshots << UiChanged::AllScreenshot.new(control, test, diff)
      end
    end
def diffs
      params[:sort] ||= "image_file_size desc"
      @diffs = UiChanged::Screenshot.search(params[:search]).not_in_ignored.where(:diff_found => true).paginate(:page => params[:page],
                                                                                  :per_page => params[:per_page],
                                                                                  :order => params[:sort])
      @all_screenshots = []
      @diffs.each do |diff|
        control = UiChanged::Screenshot.find(diff.control_id)
        test = UiChanged::Screenshot.find(diff.test_id)
        @all_screenshots << UiChanged::AllScreenshot.new(control, test, diff)
      end
    end
GET /screenshots/diffs