Sha256: 3008362c2ee476a58e9940d0b03a4f182185e51177c1add10370e17dcbaa3bdc

Contents?: true

Size: 668 Bytes

Versions: 24

Compression:

Stored size: 668 Bytes

Contents

# frozen_string_literal: true

# Log in as another user in Rails
#
# exe/rag addons/pretender

self.local_template_path = File.dirname(__FILE__)

gac 'base rails 7 image created'

prepare_environment

after_bundle do
  setup_customizations
  setup_db
end

def setup_customizations
  route("root 'home#index'")

  force_copy
  
  add_controller('home', 'index')
  
  directory "app/controllers"
  directory "app/models"
  directory "app/views"
  template  'app/views/layouts/application.html.erb'        , 'app/views/layouts/application.html.erb'
end

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

  db_migrate
  db_seed
end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
rails_app_generator-0.2.30 after_templates/addons/pretender/_.rb
rails_app_generator-0.2.29 after_templates/addons/pretender/_.rb
rails_app_generator-0.2.28 after_templates/addons/pretender/_.rb
rails_app_generator-0.2.27 after_templates/addons/pretender/_.rb