Sha256: d4f78100157e7f57f6700056febd3255f1a456c84ce42e50a221eaabd4497e59

Contents?: true

Size: 798 Bytes

Versions: 6

Compression:

Stored size: 798 Bytes

Contents

# frozen_string_literal: true

# bcrypt() is a sophisticated and secure hash algorithm designed by The OpenBSD project for hashing passwords.
#
# exe/rag addons/bcrypt_ruby

self.local_template_path = File.dirname(__FILE__)

gac 'base rails 7 image created'

bundle_install

add_controller('home', 'index')

route("root 'home#index'")

force_copy

directory "app/controllers"
directory "app/views/home"
directory "app/views/layouts"
template  'app/views/layouts/application.html.erb'        , 'app/views/layouts/application.html.erb'

template  'db/seeds.rb'                                   , 'db/seeds.rb'

after_bundle do
  setup_db
end

def setup_db
  add_scaffold('user', 'name', 'password', 'password_hash')
  directory "app/models"
  directory "app/views/users"

  db_migrate
  db_seed
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
rails_app_generator-0.2.13 after_templates/addons/bcrypt_ruby/_.rb
rails_app_generator-0.2.12 after_templates/addons/bcrypt_ruby/_.rb
rails_app_generator-0.2.11 after_templates/addons/bcrypt_ruby/_.rb
rails_app_generator-0.2.10 after_templates/addons/bcrypt_ruby/_.rb
rails_app_generator-0.2.9 after_templates/addons/bcrypt_ruby/_.rb
rails_app_generator-0.2.8 after_templates/addons/bcrypt_ruby/_.rb