Skip to content

Commit

Permalink
Making Ruby happy
Browse files Browse the repository at this point in the history
  • Loading branch information
gabceb committed Feb 26, 2013
1 parent 92f3ab1 commit b3fd34d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/tasks/kandan.rake
Expand Up @@ -32,7 +32,8 @@ namespace :kandan do
admin = User.where(:username => "admin").first

if admin
admin.is_admin = true && admin.save!
admin.is_admin = true
admin.save!
else
puts "\e[31mIt looks like there are no admins in your database. Run rake kandan:add_admin_user\e[0m"
end
Expand Down

0 comments on commit b3fd34d

Please sign in to comment.