Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fixes the failure of config.plugins without :all option tests [#3718

…status:resolved]

Signed-off-by: José Valim <jose.valim@gmail.com>
  • Loading branch information...
commit d1ffc54c06fbacf46783f5ebc84bc125c9188fd1 1 parent 6e26be6
@spastorino spastorino authored josevalim committed
Showing with 3 additions and 4 deletions.
  1. +3 −4 railties/lib/rails/application.rb
View
7 railties/lib/rails/application.rb
@@ -93,13 +93,12 @@ def initializers
initializers
end
- # TODO: Fix this method
+ # TODO: Fix this method. It loads all railties independent if :all is given
+ # or not, otherwise frameworks are never loaded.
def plugins
@plugins ||= begin
plugin_names = (config.plugins || [:all]).map { |p| p.to_sym }
- Railtie.plugins.select { |p|
- plugin_names.include?(:all) || plugin_names.include?(p.plugin_name)
- }.map { |p| p.new } + Plugin.all(plugin_names, config.paths.vendor.plugins)
+ Railtie.plugins.map(&:new) + Plugin.all(plugin_names, config.paths.vendor.plugins)
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.