{"action":"opened","issue":{"url":"https://api.github.com/repos/rails/rails/issues/24309","repository_url":"https://api.github.com/repos/rails/rails","labels_url":"https://api.github.com/repos/rails/rails/issues/24309/labels{/name}","comments_url":"https://api.github.com/repos/rails/rails/issues/24309/comments","events_url":"https://api.github.com/repos/rails/rails/issues/24309/events","html_url":"https://github.com/rails/rails/issues/24309","id":143398059,"number":24309,"title":"protected method `method_name' called for ActionView::Template","user":{"login":"TheKidCoder","id":471559,"avatar_url":"https://avatars.githubusercontent.com/u/471559?v=3","gravatar_id":"","url":"https://api.github.com/users/TheKidCoder","html_url":"https://github.com/TheKidCoder","followers_url":"https://api.github.com/users/TheKidCoder/followers","following_url":"https://api.github.com/users/TheKidCoder/following{/other_user}","gists_url":"https://api.github.com/users/TheKidCoder/gists{/gist_id}","starred_url":"https://api.github.com/users/TheKidCoder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TheKidCoder/subscriptions","organizations_url":"https://api.github.com/users/TheKidCoder/orgs","repos_url":"https://api.github.com/users/TheKidCoder/repos","events_url":"https://api.github.com/users/TheKidCoder/events{/privacy}","received_events_url":"https://api.github.com/users/TheKidCoder/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-03-25T01:02:09Z","updated_at":"2016-03-25T01:02:09Z","closed_at":null,"body":"### Steps to reproduce\r\nRender template using Rails 4.2.6\r\n\r\n### Expected behavior\r\nTemplate should have rendered.\r\n\r\n### Actual behavior\r\nException was thrown.\r\n```\r\nActionView::Template::Error (protected method `method_name' called for app/views/users/index.haml:ActionView::Template):\r\nactionview (4.2.6) lib/action_view/template.rb:269:in `compile' \r\n...\r\n```\r\n\r\n\r\n### System configuration\r\n**Rails version**: 4.2.6\r\n\r\n**Ruby version**: jRuby 9.0.5.0\r\n\r\nThe problem is coming from using `self.method_name` instead of just `method_name` because it is a protected method. This may be a jRuby problem, but I can't see a good reason to use `self`.\r\n\r\nI'm putting together a patch to fix this.\r\n"}}