Add app/controllers/side_pairings_controller.rb
This commit is contained in:
parent
5d91496063
commit
7521d43113
1 changed files with 8 additions and 0 deletions
8
app/controllers/side_pairings_controller.rb
Normal file
8
app/controllers/side_pairings_controller.rb
Normal file
|
|
@ -0,0 +1,8 @@
|
||||||
|
class SidePairingsController < ApplicationController
|
||||||
|
def show
|
||||||
|
@relationship = Relationship.find(params[:id])
|
||||||
|
@works = Work.visible_to_user(current_user)
|
||||||
|
.with_side_pairing(@relationship.id)
|
||||||
|
.order(revised_at: :desc)
|
||||||
|
end
|
||||||
|
end
|
||||||
Loading…
Reference in a new issue