1 # frozen_string_literal: true
3 class OldRelationsController < OldElementsController
6 @current_feature = @feature = Relation.preload(:element_tags).find(params.expect(:id))
7 @old_features = get_page_items(
8 OldRelation.where(:relation_id => params[:id]),
9 :cursor_column => :version,
10 :includes => [:old_tags, { :changeset => [:changeset_tags, :user], :old_members => :member }]
12 rescue ActiveRecord::RecordNotFound
13 render "browse/not_found", :status => :not_found
18 @current_feature = Relation.find(params.expect(:id))
19 @feature = OldRelation.preload(:old_tags, :changeset => [:changeset_tags, :user]).find(params.expect(:id, :version))
20 rescue ActiveRecord::RecordNotFound
21 render "browse/not_found", :status => :not_found