Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
19 lines (14 sloc) 336 Bytes
require "queue_classic"
class GistsController < ApplicationController
before_filter :force_user_login
def index
@gists = current_user.gists.includes(:files)
end
def search
@results = Gist.search params[:q]
end
def refresh
QC.enqueue("GistFetcher.fetch", current_user.id)
redirect_to gists_path
end
end
Something went wrong with that request. Please try again.