Sha256: fc95d76f825faa72fcfb8c29b4579c106e0c17eadc690c59c279037e246c97fd
Contents?: true
Size: 340 Bytes
Versions: 23
Compression:
Stored size: 340 Bytes
Contents
namespace :admin_area do desc "Create an administrator User" task :create_admin_user => :environment do user = User.new :name => 'Administrator', :email => 'hello@wearebeef.co.uk', :password => 'passw0rd', :password_confirmation => 'passw0rd' user.role = 'admin' user.save user.confirm_email! if user.valid? end end
Version data entries
23 entries across 23 versions & 1 rubygems