Class: RepositoriesController

Inherits:
ApplicationController
  • Object
show all
Defined in:
app/controllers/repositories_controller.rb

Instance Method Summary collapse

Instance Method Details

#searchObject



16
17
18
# File 'app/controllers/repositories_controller.rb', line 16

def search
  render SocialStream::Search.search(params[:q], current_subject, mode: :repository, owner: profile_subject!)
end

#showObject



4
5
6
7
8
9
10
11
12
13
14
# File 'app/controllers/repositories_controller.rb', line 4

def show
  respond_to do |format|
    format.html {
      collection

      render collection if request.xhr?
    }

    format.json { render :json => collection }
  end
end