Class: RepositoriesController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- RepositoriesController
- Defined in:
- app/controllers/repositories_controller.rb
Instance Method Summary collapse
Instance Method Details
#search ⇒ Object
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 |
#show ⇒ Object
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 |