]> git.openstreetmap.org Git - rails.git/commitdiff
Add missing files from api06 merge.
authorTom Hughes <tom@compton.nu>
Mon, 20 Apr 2009 14:09:35 +0000 (14:09 +0000)
committerTom Hughes <tom@compton.nu>
Mon, 20 Apr 2009 14:09:35 +0000 (14:09 +0000)
app/controllers/amf_controller.rb
app/controllers/export_controller.rb
app/models/old_node_tag.rb
app/views/user/view.rhtml
config/mongrel_cluster.yml [new file with mode: 0644]
db/migrate/026_add_changeset_user_index.rb [new file with mode: 0644]
db/migrate/027_add_changeset_indexes.rb [new file with mode: 0644]
public/images/new.png [deleted file]

index de3c7583b42d9977f255a581afbc5fe9265121b2..b0b3f13cf6c1947914caa7583e3fef58ff4bc392 100644 (file)
@@ -55,7 +55,7 @@ class AmfController < ApplicationController
 
     # Parse request
 
-    headers=AMF.getint(req)                                    # Read number of headers
+       headers=AMF.getint(req)                                 # Read number of headers
 
     headers.times do                                           # Read each header
       name=AMF.getstring(req)                          #  |
@@ -276,7 +276,7 @@ class AmfController < ApplicationController
 
     [wayid, points, tags, version]
   end
-
+  
   # Get an old version of a way, and all constituent nodes.
   #
   # For undelete (version<0), always uses the most recent version of each node, 
index 754cc4b8216b15acd900d3646cdb399c31d6faba..ab25fcbc67a2ed407955953287d3550c99c46812 100644 (file)
@@ -10,14 +10,14 @@ class ExportController < ApplicationController
     if format == "osm"
       #redirect to API map get
       redirect_to "http://api.openstreetmap.org/api/#{API_VERSION}/map?bbox=#{bbox}"
-      
+
     elsif format == "mapnik"
       #redirect to a special 'export' cgi script
       format = params[:mapnik_format]
       scale = params[:mapnik_scale]
 
       redirect_to "http://tile.openstreetmap.org/cgi-bin/export?bbox=#{bbox}&scale=#{scale}&format=#{format}"
-      
+
     elsif format == "osmarender"
       #redirect to the t@h 'MapOf' service
       format = params[:osmarender_format]
index 3fd4bf86b4fb71504e5c92f58fa6da570f8f0c07..dd339ad307b6400d1fed177cea4020c89883a4b2 100644 (file)
@@ -1,6 +1,6 @@
 class OldNodeTag < ActiveRecord::Base
   set_table_name 'node_tags'
-  
+
   belongs_to :user
 
   validates_presence_of :id, :version
index a62be6a55d94ad9a9a35a0b861dc78f6cae71b13..c76ca23ae620055bdbe1db9aca8569bfaf371468 100644 (file)
 <br/>
 <% if @user and @this_user.id == @user.id %>
 <%= link_to 'change your settings', :controller => 'user', :action => 'account', :display_name => @user.display_name %>
-<% end %>
\ No newline at end of file
+<% end %>
diff --git a/config/mongrel_cluster.yml b/config/mongrel_cluster.yml
new file mode 100644 (file)
index 0000000..954be24
--- /dev/null
@@ -0,0 +1,5 @@
+---\r
+log_file: log/mongrel.log\r
+port: 8000\r
+pid_file: tmp/mongrel.pid\r
+servers: 8
\ No newline at end of file
diff --git a/db/migrate/026_add_changeset_user_index.rb b/db/migrate/026_add_changeset_user_index.rb
new file mode 100644 (file)
index 0000000..fed0af7
--- /dev/null
@@ -0,0 +1,9 @@
+class AddChangesetUserIndex < ActiveRecord::Migration
+  def self.up
+    add_index "changesets", ["user_id"], :name => "changesets_user_id_idx"
+  end
+
+  def self.down
+    remove_index "changesets", :name => "changesets_user_id_idx"
+  end
+end
diff --git a/db/migrate/027_add_changeset_indexes.rb b/db/migrate/027_add_changeset_indexes.rb
new file mode 100644 (file)
index 0000000..0d4bba0
--- /dev/null
@@ -0,0 +1,13 @@
+class AddChangesetIndexes < ActiveRecord::Migration
+  def self.up
+    add_index "nodes", ["changeset_id"], :name => "nodes_changeset_id_idx"
+    add_index "ways", ["changeset_id"], :name => "ways_changeset_id_idx"
+    add_index "relations", ["changeset_id"], :name => "relations_changeset_id_idx"
+  end
+
+  def self.down
+    remove_index "relations", :name => "relations_changeset_id_idx"
+    remove_index "ways", :name => "ways_changeset_id_idx"
+    remove_index "nodes", :name => "nodes_changeset_id_idx"
+  end
+end
diff --git a/public/images/new.png b/public/images/new.png
deleted file mode 100644 (file)
index 202e10e..0000000
Binary files a/public/images/new.png and /dev/null differ