BUGFIX: rake task for creating an admin was not activating the account

This commit is contained in:
Sam Saffron 2014-05-27 12:39:15 +10:00
parent 7c3d72f77a
commit e91f944851

View file

@ -20,4 +20,5 @@ task "admin:create" => :environment do
admin.grant_admin!
admin.change_trust_level!(TrustLevel.levels.max_by{|k, v| v}[0])
admin.email_tokens.update_all confirmed: true
admin.activate
end