{"action":"opened","issue":{"url":"https://api.github.com/repos/airblade/paper_trail/issues/694","labels_url":"https://api.github.com/repos/airblade/paper_trail/issues/694/labels{/name}","comments_url":"https://api.github.com/repos/airblade/paper_trail/issues/694/comments","events_url":"https://api.github.com/repos/airblade/paper_trail/issues/694/events","html_url":"https://github.com/airblade/paper_trail/issues/694","id":126854265,"number":694,"title":"whodunnit is not set on Rails 5","user":{"login":"boblin","id":15293,"avatar_url":"https://avatars.githubusercontent.com/u/15293?v=3","gravatar_id":"","url":"https://api.github.com/users/boblin","html_url":"https://github.com/boblin","followers_url":"https://api.github.com/users/boblin/followers","following_url":"https://api.github.com/users/boblin/following{/other_user}","gists_url":"https://api.github.com/users/boblin/gists{/gist_id}","starred_url":"https://api.github.com/users/boblin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/boblin/subscriptions","organizations_url":"https://api.github.com/users/boblin/orgs","repos_url":"https://api.github.com/users/boblin/repos","events_url":"https://api.github.com/users/boblin/events{/privacy}","received_events_url":"https://api.github.com/users/boblin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-01-15T11:18:53Z","updated_at":"2016-01-15T11:18:53Z","closed_at":null,"body":"I've created test app for this ticket to test https://github.com/boblin/papertrail_rails5_test\r\n\r\nIt is basically `rails 5.0.0.beta1` app + latest `Devise` + lates `Papertrail`.\r\n\r\n\r\n```\r\nStarted GET \"/posts/1/edit\" for 127.0.0.1 at 2016-01-15 12:14:51 +0100\r\n  ActiveRecord::SchemaMigration Load (0.3ms)  SELECT \"schema_migrations\".* FROM \"schema_migrations\"\r\nProcessing by PostsController#edit as HTML\r\n  Parameters: {\"id\"=>\"1\"}\r\n  User Load (0.5ms)  SELECT  \"users\".* FROM \"users\" WHERE \"users\".\"id\" = $1 ORDER BY \"users\".\"id\" ASC LIMIT $2  [[\"id\", 1], [\"LIMIT\", 1]]\r\n  Post Load (0.2ms)  SELECT  \"posts\".* FROM \"posts\" WHERE \"posts\".\"id\" = $1 LIMIT $2  [[\"id\", 1], [\"LIMIT\", 1]]\r\n  Rendered posts/_form.html.erb (11.1ms)\r\n  Rendered posts/edit.html.erb within layouts/application (12.6ms)\r\nuser_for_paper_trail is present, but whodunnit has not been set.\r\nPaperTrail no longer adds the set_paper_trail_whodunnit\r\nbefore_filter for you. Please add this before_filter to your\r\nApplicationController to continue recording whodunnit. See the\r\nPaperTrail readme for an example.\r\nCompleted 200 OK in 193ms (Views: 156.1ms | ActiveRecord: 3.9ms)\r\n```\r\n\r\n```\r\n2.2.3 :001 > Post.last.versions.last.whodunnit\r\nD, [2016-01-15T12:17:01.172292 #17458] DEBUG -- :   Post Load (0.5ms)  SELECT  \"posts\".* FROM \"posts\" ORDER BY \"posts\".\"id\" DESC LIMIT $1  [[\"LIMIT\", 1]]\r\nD, [2016-01-15T12:17:01.197660 #17458] DEBUG -- :   PaperTrail::Version Load (0.3ms)  SELECT  \"versions\".* FROM \"versions\" WHERE \"versions\".\"item_id\" = $1 AND \"versions\".\"item_type\" = $2 ORDER BY \"versions\".\"created_at\" DESC, \"versions\".\"id\" DESC LIMIT $3  [[\"item_id\", 1], [\"item_type\", \"Post\"], [\"LIMIT\", 1]]\r\n => nil \r\n```"}}