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 {
67
67
*/
68
68
class ActionControllerClass extends DataFlow:: ClassNode {
69
69
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.
70
72
this = DataFlow:: getConstant ( "ApplicationController" ) .getADescendentModule ( )
71
73
or
72
74
this = actionControllerBaseClass ( ) .getADescendentModule ( ) and
@@ -97,8 +99,6 @@ class ActionControllerClass extends DataFlow::ClassNode {
97
99
private DataFlow:: ConstRef actionControllerBaseClass ( ) {
98
100
result =
99
101
[
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.
102
102
DataFlow:: getConstant ( "ActionController" ) .getConstant ( "Base" ) ,
103
103
// ActionController::Metal and ActionController::API technically don't contain all of the
104
104
// methods available in Base, such as those for rendering views.
You can’t perform that action at this time.
0 commit comments