Always convert railtie_name to string

This commit is contained in:
Piotr Sarnacki 2010-07-26 19:33:58 +02:00
parent 43a2aef316
commit 559979b984
1 changed files with 1 additions and 1 deletions

View File

@ -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