]> git.openstreetmap.org Git - rails.git/blob - app/controllers/relations_controller.rb
Add ElementsController base class
[rails.git] / app / controllers / relations_controller.rb
1 class RelationsController < ElementsController
2   def show
3     @type = "relation"
4     @feature = Relation.preload(:relation_tags, :containing_relation_members, :changeset => [:changeset_tags, :user], :relation_members => :member).find(params[:id])
5     render "browse/feature"
6   rescue ActiveRecord::RecordNotFound
7     render "browse/not_found", :status => :not_found
8   end
9 end