Permalink
Browse files

Always convert railtie_name to string

  • Loading branch information...
1 parent 43a2aef commit 559979b9844486a920993fdbcb719cb527b837c5 @drogus drogus committed Jul 26, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 railties/lib/rails/railtie.rb
@@ -166,7 +166,7 @@ def abstract_railtie?
end
def railtie_name(name = nil)
- @railtie_name = name if name
+ @railtie_name = name.to_s if name
@railtie_name ||= ActiveSupport::Inflector.underscore(self.name).gsub("/", "_")
end
end

0 comments on commit 559979b

Please sign in to comment.