Class: My::SharesController
- Inherits:
-
MyController
- Object
- ApplicationController
- MyController
- My::SharesController
- Defined in:
- app/controllers/my/shares_controller.rb
Instance Method Summary collapse
Methods included from Sufia::MyControllerBehavior
Instance Method Details
#index ⇒ Object
15 16 17 18 |
# File 'app/controllers/my/shares_controller.rb', line 15 def index super @selected_tab = :shared end |
#show_only_shared_files(solr_parameters, user_parameters) ⇒ Object
8 9 10 11 12 13 |
# File 'app/controllers/my/shares_controller.rb', line 8 def show_only_shared_files(solr_parameters, user_parameters) solr_parameters[:fq] ||= [] solr_parameters[:fq] += [ "-" + ActiveFedora::SolrService.construct_query_for_rel(depositor: current_user.user_key) ] end |