Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

no need to check for nil

  • Loading branch information...
commit 33733d5d1de0eae6e25ee3f28aa69727f782086c 1 parent 0495736
@neerajdotname neerajdotname authored tenderlove committed
Showing with 1 addition and 1 deletion.
  1. +1 −1  railties/lib/rails/commands/plugin.rb
View
2  railties/lib/rails/commands/plugin.rb
@@ -58,7 +58,7 @@ def install(name_uri_or_plugin)
else
plugin = name_uri_or_plugin
end
- unless plugin.nil?
+ if plugin
plugin.install
else
puts "Plugin not found: #{name_uri_or_plugin}"
Please sign in to comment.
Something went wrong with that request. Please try again.