{"action":"created","issue":{"url":"https://api.github.com/repos/puma/puma/issues/651","labels_url":"https://api.github.com/repos/puma/puma/issues/651/labels{/name}","comments_url":"https://api.github.com/repos/puma/puma/issues/651/comments","events_url":"https://api.github.com/repos/puma/puma/issues/651/events","html_url":"https://github.com/puma/puma/issues/651","id":56975497,"number":651,"title":"Undefined method on using Puma on Heroku","user":{"login":"daqo","id":1572895,"avatar_url":"https://avatars.githubusercontent.com/u/1572895?v=3","gravatar_id":"","url":"https://api.github.com/users/daqo","html_url":"https://github.com/daqo","followers_url":"https://api.github.com/users/daqo/followers","following_url":"https://api.github.com/users/daqo/following{/other_user}","gists_url":"https://api.github.com/users/daqo/gists{/gist_id}","starred_url":"https://api.github.com/users/daqo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/daqo/subscriptions","organizations_url":"https://api.github.com/users/daqo/orgs","repos_url":"https://api.github.com/users/daqo/repos","events_url":"https://api.github.com/users/daqo/events{/privacy}","received_events_url":"https://api.github.com/users/daqo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-02-09T00:12:16Z","updated_at":"2015-02-12T15:54:37Z","closed_at":null,"body":"My RoR application works smoothly when deployed using Webrick on Heroku. I tried to add puma (and at a later try, unicorn) as the default web server, everything goes well but one thing.\r\n\r\nI'm using RGeo gem to keep track of some hive locations. When switched to Puma, calling ``@point.current_location.lon`` and ``@point.current_location.lat`` throws the error:\r\n\r\n``ActionView::Template::Error (undefined method 'lon' and 'lat' for #<RGeo::Cartesian::PointImpl:0x007f700846c970>)``\r\n\r\nMeanwhile, I tried to access the current_location latitude and longitude through heroku run rails console\r\n\r\nThe interesting thing is that fetching lat and long values on Heroku console returns correct values. It seems that the problem results from puma and unicorn.\r\n\r\nAny suggestion?"},"comment":{"url":"https://api.github.com/repos/puma/puma/issues/comments/74094653","html_url":"https://github.com/puma/puma/issues/651#issuecomment-74094653","issue_url":"https://api.github.com/repos/puma/puma/issues/651","id":74094653,"user":{"login":"daqo","id":1572895,"avatar_url":"https://avatars.githubusercontent.com/u/1572895?v=3","gravatar_id":"","url":"https://api.github.com/users/daqo","html_url":"https://github.com/daqo","followers_url":"https://api.github.com/users/daqo/followers","following_url":"https://api.github.com/users/daqo/following{/other_user}","gists_url":"https://api.github.com/users/daqo/gists{/gist_id}","starred_url":"https://api.github.com/users/daqo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/daqo/subscriptions","organizations_url":"https://api.github.com/users/daqo/orgs","repos_url":"https://api.github.com/users/daqo/repos","events_url":"https://api.github.com/users/daqo/events{/privacy}","received_events_url":"https://api.github.com/users/daqo/received_events","type":"User","site_admin":false},"created_at":"2015-02-12T15:54:37Z","updated_at":"2015-02-12T15:54:37Z","body":"Right now I checked it with Unicorn too. (On Heroku)\r\nIt seems that Unicorn has the same problem with that piece of code. So I think the problem goes back to the way Heroku manages stuff; though, I'm not sure."}}