diff options
author | Luke Shumaker <shumakl@purdue.edu> | 2014-04-21 01:00:47 -0400 |
---|---|---|
committer | Luke Shumaker <shumakl@purdue.edu> | 2014-04-21 01:00:47 -0400 |
commit | 5d9cb2ec8a1edcdea4a1fa91c688ede16ed03845 (patch) | |
tree | 64c5e7294e7fd99e43b62f2b5e2063413bb928fe /db/seeds.rb | |
parent | 7399b52d8dc096e06107769a7c203a986a3262a0 (diff) |
simplify/correct seeds development check
Diffstat (limited to 'db/seeds.rb')
-rw-r--r-- | db/seeds.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/db/seeds.rb b/db/seeds.rb index fe7c32e..a3637a8 100644 --- a/db/seeds.rb +++ b/db/seeds.rb @@ -25,7 +25,7 @@ Game.find_by_name("Rock, Paper, Scissors").settings.create(name: "Favorite Objec Game.find_by_name("Rock, Paper, Scissors").settings.create(name: "Lizard, Spock allowed?", description: "Will you allow Lizard and Spock?", stype: 4, display_order: 1) Game.find_by_name("Rock, Paper, Scissors").settings.create(name: "Why are those up there even called radio buttons?", description: "Check boxes make sense at least", type_opt: "I do not know.,There is now spoon.,Wow.,Because electricity.,Wat?", stype: 2, display_order: 3) -unless ENV["RAILS_ENV"] and ENV["RAILS_ENV"] != "development" +if Rails.env.development? User.create(name: "Administrator", user_name: "admin", email: "root@localhost.lan", password: "password", password_confirmation: "password", permissions: 0xFFFFFFFF) User.create(name: "John 0", password: "password", email: "john0@gmail.com", user_name: "johndoe0", password_confirmation: "password") |