]> git.openstreetmap.org Git - rails.git/blob - app/controllers/old_relations_controller.rb
Move changeset created/closed time ago strings to changesets locale
[rails.git] / app / controllers / old_relations_controller.rb
1 class OldRelationsController < ApplicationController
2   layout :map_layout
3
4   before_action :authorize_web
5   before_action :set_locale
6   before_action -> { check_database_readable(:need_api => true) }
7   before_action :require_oauth
8
9   authorize_resource
10
11   around_action :web_timeout
12
13   def show
14     @type = "relation"
15     @feature = OldRelation.preload(:old_tags, :changeset => [:changeset_tags, :user], :old_members => :member).find([params[:id], params[:version]])
16   rescue ActiveRecord::RecordNotFound
17     render :action => "not_found", :status => :not_found
18   end
19 end