Sha256: 03fef9debdc52f8853a9b55934384fc8843638c8dcd6963c79e25d635a06bf34
Contents?: true
Size: 464 Bytes
Versions: 7
Compression:
Stored size: 464 Bytes
Contents
module Para class AdminUserGenerator < Rails::Generators::Base source_root File.expand_path("../templates", __FILE__) def create_admin_user say 'Creating default admin...' email = ask('Email [admin@example.com] : ').presence || 'admin@example.com' password = ask('Password [password] : ').presence || 'password' AdminUser.create! email: email, password: password say 'Created AdminUser' end end end
Version data entries
7 entries across 7 versions & 1 rubygems