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.3.6 after_templates/addons/pretender/_.rb
rails_app_generator-0.3.5 after_templates/addons/pretender/_.rb
rails_app_generator-0.3.4 after_templates/addons/pretender/_.rb
rails_app_generator-0.3.3 after_templates/addons/pretender/_.rb
rails_app_generator-0.3.2 after_templates/addons/pretender/_.rb
rails_app_generator-0.3.1 after_templates/addons/pretender/_.rb
rails_app_generator-0.3.0 after_templates/addons/pretender/_.rb
rails_app_generator-0.2.43 after_templates/addons/pretender/_.rb
rails_app_generator-0.2.42 after_templates/addons/pretender/_.rb
rails_app_generator-0.2.41 after_templates/addons/pretender/_.rb
rails_app_generator-0.2.40 after_templates/addons/pretender/_.rb
rails_app_generator-0.2.39 after_templates/addons/pretender/_.rb
rails_app_generator-0.2.38 after_templates/addons/pretender/_.rb
rails_app_generator-0.2.37 after_templates/addons/pretender/_.rb
rails_app_generator-0.2.36 after_templates/addons/pretender/_.rb
rails_app_generator-0.2.35 after_templates/addons/pretender/_.rb
rails_app_generator-0.2.34 after_templates/addons/pretender/_.rb
rails_app_generator-0.2.33 after_templates/addons/pretender/_.rb
rails_app_generator-0.2.32 after_templates/addons/pretender/_.rb
rails_app_generator-0.2.31 after_templates/addons/pretender/_.rb