Always convert railtie_name to string
This commit is contained in:
parent
43a2aef316
commit
559979b984
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue