aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_controller/dependencies.rb
diff options
context:
space:
mode:
Diffstat (limited to 'actionpack/lib/action_controller/dependencies.rb')
-rw-r--r--actionpack/lib/action_controller/dependencies.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/actionpack/lib/action_controller/dependencies.rb b/actionpack/lib/action_controller/dependencies.rb
index 1f8ae7c22d..1deaf0ce4b 100644
--- a/actionpack/lib/action_controller/dependencies.rb
+++ b/actionpack/lib/action_controller/dependencies.rb
@@ -26,6 +26,9 @@ module ActionController #:nodoc:
# # model :post (already required)
# # helper :post (already required)
# end
+ #
+ # Also note, that if the models follow the pattern of just 1 class per file in the form of MyClass => my_class.rb, then these
+ # classes doesn't have to be required as Active Support will auto-require them.
module ClassMethods
# Specifies a variable number of models that this controller depends on. Models are normally Active Record classes or a similar
# backend for modelling entity classes.