Skip to content

Commit 7b3f1a0

Browse files
committed
Ruby: fix comment
1 parent 081c120 commit 7b3f1a0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ruby/ql/lib/codeql/ruby/frameworks/ActionController.qll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,8 @@ module ActionController {
6767
*/
6868
class ActionControllerClass extends DataFlow::ClassNode {
6969
ActionControllerClass() {
70+
// In Rails applications `ApplicationController` typically extends `ActionController::Base`, but we
71+
// treat it separately in case the `ApplicationController` definition is not in the database.
7072
this = DataFlow::getConstant("ApplicationController").getADescendentModule()
7173
or
7274
this = actionControllerBaseClass().getADescendentModule() and
@@ -97,8 +99,6 @@ class ActionControllerClass extends DataFlow::ClassNode {
9799
private DataFlow::ConstRef actionControllerBaseClass() {
98100
result =
99101
[
100-
// In Rails applications `ApplicationController` typically extends `ActionController::Base`, but we
101-
// treat it separately in case the `ApplicationController` definition is not in the database.
102102
DataFlow::getConstant("ActionController").getConstant("Base"),
103103
// ActionController::Metal and ActionController::API technically don't contain all of the
104104
// methods available in Base, such as those for rendering views.

0 commit comments

Comments
 (0)