1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

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

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