diff options
author | Tim Vergenz <vergenzt@gmail.com> | 2017-05-30 09:25:20 -0700 |
---|---|---|
committer | Tim Vergenz <tim@udacity.com> | 2017-06-12 07:34:17 -0700 |
commit | de7bc3188160f6ceb943b30a0f8603c4b447a7d3 (patch) | |
tree | e072e728ebceaf119684650d076a41c16f2e2301 /railties/lib/rails | |
parent | eb804ad5a783e1e97720ef55a91b6aae7ebd724f (diff) | |
download | rails-de7bc3188160f6ceb943b30a0f8603c4b447a7d3.tar.gz rails-de7bc3188160f6ceb943b30a0f8603c4b447a7d3.tar.bz2 rails-de7bc3188160f6ceb943b30a0f8603c4b447a7d3.zip |
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]
Diffstat (limited to 'railties/lib/rails')
-rw-r--r-- | railties/lib/rails/railtie.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/railties/lib/rails/railtie.rb b/railties/lib/rails/railtie.rb index 3476bb0eb5..eca8335559 100644 --- a/railties/lib/rails/railtie.rb +++ b/railties/lib/rails/railtie.rb @@ -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 |