Permalink
Browse files

fix ambiguous * and remove unused variable

  • Loading branch information...
1 parent 7e80394 commit 50db00dc7eae30fbbdf26b9f2abdf978f443bad3 @tenderlove tenderlove committed Aug 24, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 railties/lib/rails/generators.rb
View
4 railties/lib/rails/generators.rb
@@ -75,7 +75,7 @@ def self.configure!(config = Rails.application.config.generators) #:nodoc:
fallbacks.merge! config.fallbacks
templates_path.concat config.templates
templates_path.uniq!
- hide_namespaces *config.hidden_namespaces
+ hide_namespaces(*config.hidden_namespaces)
end
def self.templates_path
@@ -317,7 +317,7 @@ def self.lookup! #:nodoc:
begin
path = path.sub("#{base}/", "")
require path
- rescue Exception => e
+ rescue Exception
# No problem
end
end

0 comments on commit 50db00d

Please sign in to comment.