Permalink
Browse files

use if.any?

  • Loading branch information...
1 parent 58db630 commit 1a992a8c05828effbd9d629ab9bd94f8adab19df @mikehale mikehale committed Aug 6, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/language_pack/rails2.rb
@@ -68,7 +68,7 @@ def plugin_root
def install_plugins
instrument "rails2.install_plugins" do
plugins_to_install = plugins.select { |plugin| install_plugin?(plugin) }
- unless plugins_to_install.empty?
+ if plugins_to_install.any?
topic "Rails plugin injection"
plugins_to_install.each { |plugin| install_plugin(plugin) }
end

0 comments on commit 1a992a8

Please sign in to comment.