aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPiotr Sarnacki <drogus@gmail.com>2010-07-26 19:33:58 +0200
committerPiotr Sarnacki <drogus@gmail.com>2010-09-03 22:59:09 +0200
commit559979b9844486a920993fdbcb719cb527b837c5 (patch)
treec69d74ad1ef38738f03a77ae382ed34fdb0b6c0d
parent43a2aef3165793d9265aea1257063a60766f2226 (diff)
downloadrails-559979b9844486a920993fdbcb719cb527b837c5.tar.gz
rails-559979b9844486a920993fdbcb719cb527b837c5.tar.bz2
rails-559979b9844486a920993fdbcb719cb527b837c5.zip
Always convert railtie_name to string
-rw-r--r--railties/lib/rails/railtie.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/lib/rails/railtie.rb b/railties/lib/rails/railtie.rb
index 3e2a3c5231..ab565b0cdc 100644
--- a/railties/lib/rails/railtie.rb
+++ b/railties/lib/rails/railtie.rb
@@ -166,7 +166,7 @@ module Rails
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