mirror of
https://github.com/github/codeql.git
synced 2025-12-20 18:56:32 +01:00
ActionController filters provide a way to register callbacks that run before, after or around an action (i.e. HTTP request handler). They run in the same class context as the action, so can get/set instance variables and generally interact with the action in arbitrary ways. In order to track flow between filters and actions, we have to model the callback chain. This commit does that. A later change will add dataflow steps to actually track flow through the chain.
12 lines
235 B
Ruby
12 lines
235 B
Ruby
Rails.application.routes.draw do
|
|
resources :users
|
|
resources :comments do
|
|
get "photo", on: :member
|
|
end
|
|
resources :photos
|
|
resources :posts do
|
|
post "upvote", on: :member
|
|
end
|
|
resources :tags
|
|
end
|