{"action":"created","issue":{"url":"https://api.github.com/repos/rails/rails/issues/18334","labels_url":"https://api.github.com/repos/rails/rails/issues/18334/labels{/name}","comments_url":"https://api.github.com/repos/rails/rails/issues/18334/comments","events_url":"https://api.github.com/repos/rails/rails/issues/18334/events","html_url":"https://github.com/rails/rails/pull/18334","id":53354910,"number":18334,"title":"Add prepend option to protect_from_forgery.","user":{"login":"simi","id":193936,"avatar_url":"https://avatars.githubusercontent.com/u/193936?v=3","gravatar_id":"","url":"https://api.github.com/users/simi","html_url":"https://github.com/simi","followers_url":"https://api.github.com/users/simi/followers","following_url":"https://api.github.com/users/simi/following{/other_user}","gists_url":"https://api.github.com/users/simi/gists{/gist_id}","starred_url":"https://api.github.com/users/simi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/simi/subscriptions","organizations_url":"https://api.github.com/users/simi/orgs","repos_url":"https://api.github.com/users/simi/repos","events_url":"https://api.github.com/users/simi/events{/privacy}","received_events_url":"https://api.github.com/users/simi/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":15,"created_at":"2015-01-05T00:42:17Z","updated_at":"2015-01-08T19:42:14Z","closed_at":"2015-01-08T18:51:16Z","pull_request":{"url":"https://api.github.com/repos/rails/rails/pulls/18334","html_url":"https://github.com/rails/rails/pull/18334","diff_url":"https://github.com/rails/rails/pull/18334.diff","patch_url":"https://github.com/rails/rails/pull/18334.patch"},"body":"Suggested by @dhh in https://github.com/rails/rails/issues/18329#issuecomment-68654291.\r\n\r\n*This is first iteration. I try to refactor tests to keep it DRY'ed.*\r\n\r\nCloses #18329 "},"comment":{"url":"https://api.github.com/repos/rails/rails/issues/comments/69236396","html_url":"https://github.com/rails/rails/pull/18334#issuecomment-69236396","issue_url":"https://api.github.com/repos/rails/rails/issues/18334","id":69236396,"user":{"login":"dhh","id":2741,"avatar_url":"https://avatars.githubusercontent.com/u/2741?v=3","gravatar_id":"","url":"https://api.github.com/users/dhh","html_url":"https://github.com/dhh","followers_url":"https://api.github.com/users/dhh/followers","following_url":"https://api.github.com/users/dhh/following{/other_user}","gists_url":"https://api.github.com/users/dhh/gists{/gist_id}","starred_url":"https://api.github.com/users/dhh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dhh/subscriptions","organizations_url":"https://api.github.com/users/dhh/orgs","repos_url":"https://api.github.com/users/dhh/repos","events_url":"https://api.github.com/users/dhh/events{/privacy}","received_events_url":"https://api.github.com/users/dhh/received_events","type":"User","site_admin":false},"created_at":"2015-01-08T19:42:14Z","updated_at":"2015-01-08T19:42:14Z","body":"Right, it’s technically possible to do that. It’s technically possible to do a lot of crazy shit. At some point you have to say “we’re not going to take on every possible ounce of crazy”. I’d like to see just one real example from this before going down another migration path for a possibly-maybe-probably-not.\r\n\r\n> On Jan 8, 2015, at 11:40 AM, Josef Šimánek <notifications@github.com> wrote:\r\n> \r\n> As I said before you can use before_filter to update some DB column and it will be triggered before verify_authenticity_token is called.\r\n> \r\n> class ApplicationController < ActionController::Base\r\n>   before_filter :update_something\r\n>   protect_from_forgery\r\n> end\r\n> —\r\n> Reply to this email directly or view it on GitHub <https://github.com/rails/rails/pull/18334#issuecomment-69236018>.\r\n> "}}