{"action":"created","issue":{"url":"https://api.github.com/repos/simplabs/rails_api_auth/issues/30","repository_url":"https://api.github.com/repos/simplabs/rails_api_auth","labels_url":"https://api.github.com/repos/simplabs/rails_api_auth/issues/30/labels{/name}","comments_url":"https://api.github.com/repos/simplabs/rails_api_auth/issues/30/comments","events_url":"https://api.github.com/repos/simplabs/rails_api_auth/issues/30/events","html_url":"https://github.com/simplabs/rails_api_auth/issues/30","id":142371159,"number":30,"title":"Need pry as a production dependency?","user":{"login":"kalmanh","id":869312,"avatar_url":"https://avatars.githubusercontent.com/u/869312?v=3","gravatar_id":"","url":"https://api.github.com/users/kalmanh","html_url":"https://github.com/kalmanh","followers_url":"https://api.github.com/users/kalmanh/followers","following_url":"https://api.github.com/users/kalmanh/following{/other_user}","gists_url":"https://api.github.com/users/kalmanh/gists{/gist_id}","starred_url":"https://api.github.com/users/kalmanh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kalmanh/subscriptions","organizations_url":"https://api.github.com/users/kalmanh/orgs","repos_url":"https://api.github.com/users/kalmanh/repos","events_url":"https://api.github.com/users/kalmanh/events{/privacy}","received_events_url":"https://api.github.com/users/kalmanh/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-03-21T14:45:20Z","updated_at":"2016-03-21T14:53:12Z","closed_at":null,"body":"I deployed my app to Heroku (which runs apps in production environment) and it was not working.\r\n\r\nThe reason I believe was because pry is specified as a development dependency, but is being used in production as well\r\n\r\nhttps://github.com/simplabs/rails_api_auth/search?utf8=%E2%9C%93&q=pry\r\n\r\nOnce I added pry to my app's Gemfile - the app started working fine"},"comment":{"url":"https://api.github.com/repos/simplabs/rails_api_auth/issues/comments/199324208","html_url":"https://github.com/simplabs/rails_api_auth/issues/30#issuecomment-199324208","issue_url":"https://api.github.com/repos/simplabs/rails_api_auth/issues/30","id":199324208,"user":{"login":"kalmanh","id":869312,"avatar_url":"https://avatars.githubusercontent.com/u/869312?v=3","gravatar_id":"","url":"https://api.github.com/users/kalmanh","html_url":"https://github.com/kalmanh","followers_url":"https://api.github.com/users/kalmanh/followers","following_url":"https://api.github.com/users/kalmanh/following{/other_user}","gists_url":"https://api.github.com/users/kalmanh/gists{/gist_id}","starred_url":"https://api.github.com/users/kalmanh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kalmanh/subscriptions","organizations_url":"https://api.github.com/users/kalmanh/orgs","repos_url":"https://api.github.com/users/kalmanh/repos","events_url":"https://api.github.com/users/kalmanh/events{/privacy}","received_events_url":"https://api.github.com/users/kalmanh/received_events","type":"User","site_admin":false},"created_at":"2016-03-21T14:53:12Z","updated_at":"2016-03-21T14:53:12Z","body":"Also, I don't believe you need any `require` on top. Once in the Gemfile, the bundler should `require` it for you automatically. What was the last time you wrote `require 'active_record'`? :)"}}