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

Add note to Railtie docs to use unique filenames

The fact that the names need to be globally unique was not obvious to me, so I
thought it'd be worth documenting. This not being clear was the cause of both
ctran/annotate_models#468 and instructure/outrigger#1.

[ci skip]
This commit is contained in:
Tim Vergenz 2017-05-30 09:25:20 -07:00 committed by Tim Vergenz
parent eb804ad5a7
commit de7bc31881

View file

@ -103,6 +103,9 @@ module Rails
# end
# end
#
# Since filenames on the load path are shared across gems, be sure that files you load
# through a railtie have unique names.
#
# == Application and Engine
#
# An engine is nothing more than a railtie with some initializers already set. And since