@@ -53,7 +53,7 @@ module Filters {
53
53
/**
54
54
* Gets an action which this filter is applied to.
55
55
*/
56
- ActionControllerActionMethod getAction ( ) {
56
+ ActionControllerActionMethod getAnAction ( ) {
57
57
// A filter cannot apply to another filter
58
58
result != any ( Filter f ) .getFilterCallable ( ) and
59
59
// Only include routable actions. This can exclude valid actions if we can't parse the `routes.rb` file fully.
@@ -212,8 +212,8 @@ module Filters {
212
212
other .getKind ( ) = this .getKind ( ) and
213
213
not this .skipped ( action ) and
214
214
not other .skipped ( action ) and
215
- action = this .getAction ( ) and
216
- action = other .getAction ( ) and
215
+ action = this .getAnAction ( ) and
216
+ action = other .getAnAction ( ) and
217
217
(
218
218
not this .isPrepended ( ) and
219
219
(
@@ -286,7 +286,7 @@ module Filters {
286
286
287
287
Callable getFilterCallable ( ) { result = call .getFilterCallable ( this .getFilterName ( ) ) }
288
288
289
- ActionControllerActionMethod getAction ( ) { result = call .getAction ( ) }
289
+ ActionControllerActionMethod getAnAction ( ) { result = call .getAnAction ( ) }
290
290
}
291
291
292
292
private class BeforeFilter extends Filter {
@@ -318,7 +318,7 @@ module Filters {
318
318
319
319
Callable getFilterCallable ( ) { result = call .getFilterCallable ( this .getFilterName ( ) ) }
320
320
321
- ActionControllerActionMethod getAction ( ) { result = call .getAction ( ) }
321
+ ActionControllerActionMethod getAnAction ( ) { result = call .getAnAction ( ) }
322
322
323
323
predicate registeredBefore ( StringlikeLiteralCfgNode other ) {
324
324
( other instanceof SkipFilter or other instanceof Filter ) and
@@ -327,8 +327,8 @@ module Filters {
327
327
328
328
Filter getSkippedFilter ( ActionControllerActionMethod action ) {
329
329
not result instanceof SkipFilter and
330
- action = this .getAction ( ) and
331
- action = result .getAction ( ) and
330
+ action = this .getAnAction ( ) and
331
+ action = result .getAnAction ( ) and
332
332
result .getFilterCallable ( ) = this .getFilterCallable ( )
333
333
}
334
334
}
@@ -386,13 +386,13 @@ module Filters {
386
386
// Final before filter
387
387
not exists ( f .getNextFilter ( action ) ) and
388
388
not f .skipped ( action ) and
389
- action = f .getAction ( ) and
389
+ action = f .getAnAction ( ) and
390
390
succ = action
391
391
)
392
392
or
393
393
exists ( AfterFilter f |
394
394
// First after filter
395
- action = f .getAction ( ) and
395
+ action = f .getAnAction ( ) and
396
396
not f .skipped ( action ) and
397
397
pred = action and
398
398
succ = f .getFilterCallable ( ) and
0 commit comments