From beeb86bf91609a5b606fb0115872bb29e13aedaf Mon Sep 17 00:00:00 2001 From: Sam Date: Mon, 19 Aug 2013 11:33:24 +1000 Subject: [PATCH] correct user simulator --- script/user_simulator.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/script/user_simulator.rb b/script/user_simulator.rb index 32f6b204dd7..b03d77e2148 100644 --- a/script/user_simulator.rb +++ b/script/user_simulator.rb @@ -35,7 +35,7 @@ end require File.expand_path(File.dirname(__FILE__) + "/../config/environment") -unless Rails.env.development? +unless ["profile", "development"].include? Rails.env puts "Bad idea to run a script that inserts random posts in any non development environment" exit end