Skip to content

Commit b3fd34d

Browse files
committed
Making Ruby happy
1 parent 92f3ab1 commit b3fd34d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/tasks/kandan.rake

+2-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@ namespace :kandan do
3232
admin = User.where(:username => "admin").first
3333

3434
if admin
35-
admin.is_admin = true && admin.save!
35+
admin.is_admin = true
36+
admin.save!
3637
else
3738
puts "\e[31mIt looks like there are no admins in your database. Run rake kandan:add_admin_user\e[0m"
3839
end

0 commit comments

Comments
 (0)