File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
ruby/ql/lib/codeql/ruby/frameworks Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -67,6 +67,8 @@ module ActionController {
6767 */
6868class 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 {
9799private 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.
You can’t perform that action at this time.
0 commit comments