{"action":"opened","issue":{"url":"https://api.github.com/repos/rails/rails/issues/20568","labels_url":"https://api.github.com/repos/rails/rails/issues/20568/labels{/name}","comments_url":"https://api.github.com/repos/rails/rails/issues/20568/comments","events_url":"https://api.github.com/repos/rails/rails/issues/20568/events","html_url":"https://github.com/rails/rails/issues/20568","id":88478824,"number":20568,"title":"regression: callback symbol conditions can't refer to instance variables","user":{"login":"bughit","id":895588,"avatar_url":"https://avatars.githubusercontent.com/u/895588?v=3","gravatar_id":"","url":"https://api.github.com/users/bughit","html_url":"https://github.com/bughit","followers_url":"https://api.github.com/users/bughit/followers","following_url":"https://api.github.com/users/bughit/following{/other_user}","gists_url":"https://api.github.com/users/bughit/gists{/gist_id}","starred_url":"https://api.github.com/users/bughit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bughit/subscriptions","organizations_url":"https://api.github.com/users/bughit/orgs","repos_url":"https://api.github.com/users/bughit/repos","events_url":"https://api.github.com/users/bughit/events{/privacy}","received_events_url":"https://api.github.com/users/bughit/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-06-15T16:43:56Z","updated_at":"2015-06-15T16:43:56Z","closed_at":null,"body":"## 4.0\r\na symbol filter was just embedded in a string and therefore could refer to instance vars (among other things)\r\n```ruby\r\n      def _compile_filter(filter)\r\n        case filter\r\n        when Array\r\n          filter.map {|f| _compile_filter(f)}\r\n        when Symbol\r\n          filter\r\n```\r\n## 4.2\r\nonly methods in 4.2\r\n```ruby\r\n      def make_lambda(filter)\r\n        case filter\r\n        when Symbol\r\n          lambda { |target, _, &blk| target.send filter, &blk }\r\n```"}}