Sha256: d79b230105030048eca9ce3d58462afb28594b194c2f52fa31c6261ccd5a1743

Contents?: true

Size: 748 Bytes

Versions: 18

Compression:

Stored size: 748 Bytes

Contents

# frozen_string_literal: true

# Brakeman is a static analysis security vulnerability scanner for Ruby on Rails applications
#
# exe/rag addons/brakeman

self.local_template_path = File.dirname(__FILE__)

gac 'base rails 7 image created'

prepare_environment

after_bundle do
  scaffolds
  setup_customizations
  setup_db
end

def scaffolds
  add_scaffold('post', 'title', 'body:text')
end

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

  force_copy
  
  add_controller('home', 'index', 'examples', 'output')
  
  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
  db_migrate
  db_seed
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
rails_app_generator-0.3.6 after_templates/addons/brakeman/_.rb
rails_app_generator-0.3.5 after_templates/addons/brakeman/_.rb
rails_app_generator-0.3.4 after_templates/addons/brakeman/_.rb
rails_app_generator-0.3.3 after_templates/addons/brakeman/_.rb
rails_app_generator-0.3.2 after_templates/addons/brakeman/_.rb
rails_app_generator-0.3.1 after_templates/addons/brakeman/_.rb
rails_app_generator-0.3.0 after_templates/addons/brakeman/_.rb
rails_app_generator-0.2.43 after_templates/addons/brakeman/_.rb
rails_app_generator-0.2.42 after_templates/addons/brakeman/_.rb
rails_app_generator-0.2.41 after_templates/addons/brakeman/_.rb
rails_app_generator-0.2.40 after_templates/addons/brakeman/_.rb
rails_app_generator-0.2.39 after_templates/addons/brakeman/_.rb
rails_app_generator-0.2.38 after_templates/addons/brakeman/_.rb
rails_app_generator-0.2.37 after_templates/addons/brakeman/_.rb
rails_app_generator-0.2.36 after_templates/addons/brakeman/_.rb
rails_app_generator-0.2.35 after_templates/addons/brakeman/_.rb
rails_app_generator-0.2.34 after_templates/addons/brakeman/_.rb
rails_app_generator-0.2.33 after_templates/addons/brakeman/_.rb