From de7bc3188160f6ceb943b30a0f8603c4b447a7d3 Mon Sep 17 00:00:00 2001 From: Tim Vergenz Date: Tue, 30 May 2017 09:25:20 -0700 Subject: 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] --- railties/lib/rails/railtie.rb | 3 +++ 1 file changed, 3 insertions(+) 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 -- cgit v1.2.3