rails7: 常用设置 application.rb
一个 rails 项目里的常用设置
常用配置
- rails g model: 不要生成 test case 等
require_relative "boot"
require "rails/all"
# Require the gems listed in Gemfile, including any gems
# you've limited to :test, :development, or :production.
Bundler.require(*Rails.groups)
module Rails7Notes
class Application < Rails::Application
# ... 省略10000行代码
# setting for generator
config.generators do |g|
g.assets false
g.helper false
g.test_framework nil
end
end
end