]> git.openstreetmap.org Git - rails.git/blobdiff - script/statistics
Bump eslint from 7.13.0 to 7.14.0
[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