Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: c896e2a918
Fetching contributors…

Cannot retrieve contributors at this time

19 lines (14 sloc) 0.391 kb
require "queue_classic"
class GistsController < ApplicationController
before_filter :force_user_login
def index
@gists = current_user.gists.order("gh_created_at DESC").includes(:files)
end
def search
@results = Gist.search(current_user, params[:q])
end
def refresh
QC.enqueue("GistFetcher.fetch_user", current_user.id)
redirect_to search_gists_path
end
end
Jump to Line
Something went wrong with that request. Please try again.