Create relation version redaction resource
This commit is contained in:
parent
8ccdc50313
commit
edaca6995c
5 changed files with 186 additions and 131 deletions
11
app/controllers/api/old_relations/redactions_controller.rb
Normal file
11
app/controllers/api/old_relations/redactions_controller.rb
Normal file
|
@ -0,0 +1,11 @@
|
|||
module Api
|
||||
module OldRelations
|
||||
class RedactionsController < OldElements::RedactionsController
|
||||
private
|
||||
|
||||
def lookup_old_element
|
||||
@old_element = OldRelation.find([params[:relation_id], params[:version]])
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue