{"action":"created","issue":{"url":"https://api.github.com/repos/rails/activerecord-session_store/issues/133","repository_url":"https://api.github.com/repos/rails/activerecord-session_store","labels_url":"https://api.github.com/repos/rails/activerecord-session_store/issues/133/labels{/name}","comments_url":"https://api.github.com/repos/rails/activerecord-session_store/issues/133/comments","events_url":"https://api.github.com/repos/rails/activerecord-session_store/issues/133/events","html_url":"https://github.com/rails/activerecord-session_store/issues/133","id":350303405,"node_id":"MDU6SXNzdWUzNTAzMDM0MDU=","number":133,"title":"doesn't work with multi-tenant rails app ","user":{"login":"ashwintastic","id":11703081,"node_id":"MDQ6VXNlcjExNzAzMDgx","avatar_url":"https://avatars0.githubusercontent.com/u/11703081?v=4","gravatar_id":"","url":"https://api.github.com/users/ashwintastic","html_url":"https://github.com/ashwintastic","followers_url":"https://api.github.com/users/ashwintastic/followers","following_url":"https://api.github.com/users/ashwintastic/following{/other_user}","gists_url":"https://api.github.com/users/ashwintastic/gists{/gist_id}","starred_url":"https://api.github.com/users/ashwintastic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ashwintastic/subscriptions","organizations_url":"https://api.github.com/users/ashwintastic/orgs","repos_url":"https://api.github.com/users/ashwintastic/repos","events_url":"https://api.github.com/users/ashwintastic/events{/privacy}","received_events_url":"https://api.github.com/users/ashwintastic/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-08-14T06:59:21Z","updated_at":"2018-09-28T09:04:23Z","closed_at":"2018-08-31T21:49:58Z","author_association":"NONE","body":"I have created multi-tenant rails app every thing is working fine for default database. but it gives **Can't verify CSRF token authenticity.** if i try to post from tenant "},"comment":{"url":"https://api.github.com/repos/rails/activerecord-session_store/issues/comments/425371977","html_url":"https://github.com/rails/activerecord-session_store/issues/133#issuecomment-425371977","issue_url":"https://api.github.com/repos/rails/activerecord-session_store/issues/133","id":425371977,"node_id":"MDEyOklzc3VlQ29tbWVudDQyNTM3MTk3Nw==","user":{"login":"Grandvizir","id":2347570,"node_id":"MDQ6VXNlcjIzNDc1NzA=","avatar_url":"https://avatars3.githubusercontent.com/u/2347570?v=4","gravatar_id":"","url":"https://api.github.com/users/Grandvizir","html_url":"https://github.com/Grandvizir","followers_url":"https://api.github.com/users/Grandvizir/followers","following_url":"https://api.github.com/users/Grandvizir/following{/other_user}","gists_url":"https://api.github.com/users/Grandvizir/gists{/gist_id}","starred_url":"https://api.github.com/users/Grandvizir/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Grandvizir/subscriptions","organizations_url":"https://api.github.com/users/Grandvizir/orgs","repos_url":"https://api.github.com/users/Grandvizir/repos","events_url":"https://api.github.com/users/Grandvizir/events{/privacy}","received_events_url":"https://api.github.com/users/Grandvizir/received_events","type":"User","site_admin":false},"created_at":"2018-09-28T09:04:23Z","updated_at":"2018-09-28T09:04:23Z","author_association":"NONE","body":"Hi guys,\r\n\r\nI am working on a multi-tenant rails app as well and by default active_session_store is reading the wrong schema of the database as @rafaelfranca explained. \r\nTo avoid this: \r\n`ActiveRecord::SessionStore::Session.table_name = 'legacy_session_table'` where your table name should include your Database schema. `public.sessions` in my case.\r\n\r\nHope this will help you! "}}
{"actor":{"display_login":"Grandvizir"}}