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:
parent
43a2aef316
commit
559979b984
1 changed files with 1 additions and 1 deletions
|
@ -166,7 +166,7 @@ module Rails
|
||||||
end
|
end
|
||||||
|
|
||||||
def railtie_name(name = nil)
|
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("/", "_")
|
@railtie_name ||= ActiveSupport::Inflector.underscore(self.name).gsub("/", "_")
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue