Pluralize old_ controllers
This commit is contained in:
parent
05117aa928
commit
e85c56d151
9 changed files with 28 additions and 31 deletions
11
app/controllers/old_relations_controller.rb
Normal file
11
app/controllers/old_relations_controller.rb
Normal file
|
@ -0,0 +1,11 @@
|
|||
class OldRelationsController < OldController
|
||||
private
|
||||
|
||||
def lookup_old_element
|
||||
@old_element = OldRelation.find([params[:id], params[:version]])
|
||||
end
|
||||
|
||||
def lookup_old_element_versions
|
||||
@elements = OldRelation.where(:relation_id => params[:id]).order(:version)
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue