mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Merge pull request #9987 from robertomiranda/group-assets
Update Bundler require in getting started application
This commit is contained in:
commit
33f6a4b775
1 changed files with 3 additions and 2 deletions
|
@ -2,8 +2,9 @@ require File.expand_path('../boot', __FILE__)
|
|||
|
||||
require 'rails/all'
|
||||
|
||||
# Assets should be precompiled for production (so we don't need the gems loaded then)
|
||||
Bundler.require(*Rails.groups(assets: %w(development test)))
|
||||
# Require the gems listed in Gemfile, including any gems
|
||||
# you've limited to :test, :development, or :production.
|
||||
Bundler.require(:default, Rails.env)
|
||||
|
||||
module Blog
|
||||
class Application < Rails::Application
|
||||
|
|
Loading…
Reference in a new issue