mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
c690b7124d
This makes "sprockets/railtie" explicit. This means that sprockets will be loaded when you require "rails/all". If you are not using requiring "rails/all", you need to manually load it with all other framework railties. In order to be complete, this commit also adds --skip-sprockets to the rails generator.
15 lines
215 B
Ruby
15 lines
215 B
Ruby
require "rails"
|
|
|
|
%w(
|
|
active_record
|
|
action_controller
|
|
action_mailer
|
|
active_resource
|
|
rails/test_unit
|
|
sprockets
|
|
).each do |framework|
|
|
begin
|
|
require "#{framework}/railtie"
|
|
rescue LoadError
|
|
end
|
|
end
|