]> git.openstreetmap.org Git - rails.git/blobdiff - script/statistics
Merge remote-tracking branch 'upstream/pull/2999'
[rails.git] / script / statistics
index 912302c2ee7bb4bd5d0c921679bb322a2fd475dd..33205fe62f39193ccf0ea47af843de891ffb8243 100755 (executable)
@@ -1,6 +1,6 @@
 #!/usr/bin/env ruby
 
-require File.dirname(__FILE__) + "/../config/environment"
+require File.join(File.dirname(__FILE__), "..", "config", "environment")
 
 start_time = Time.now
 
@@ -15,7 +15,7 @@ puts "<h2>OpenStreetMap stats report run at #{start_time}</h2>"
 
 begin
   ActiveRecord::Base.transaction do
-    user_count = User.where(:status => %w(active confirmed suspended)).count
+    user_count = User.where(:status => %w[active confirmed suspended]).count
     tracepoint_count = Tracepoint.count
     node_count = Node.where(:visible => true).count
     way_count = Way.where(:visible => true).count