{"action":"created","issue":{"url":"https://api.github.com/repos/shakacode/react_on_rails/issues/172","labels_url":"https://api.github.com/repos/shakacode/react_on_rails/issues/172/labels{/name}","comments_url":"https://api.github.com/repos/shakacode/react_on_rails/issues/172/comments","events_url":"https://api.github.com/repos/shakacode/react_on_rails/issues/172/events","html_url":"https://github.com/shakacode/react_on_rails/pull/172","id":124120488,"number":172,"title":"Updated the server rendering pool to support precompiled assets.","user":{"login":"martyphee","id":754870,"avatar_url":"https://avatars.githubusercontent.com/u/754870?v=3","gravatar_id":"","url":"https://api.github.com/users/martyphee","html_url":"https://github.com/martyphee","followers_url":"https://api.github.com/users/martyphee/followers","following_url":"https://api.github.com/users/martyphee/following{/other_user}","gists_url":"https://api.github.com/users/martyphee/gists{/gist_id}","starred_url":"https://api.github.com/users/martyphee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/martyphee/subscriptions","organizations_url":"https://api.github.com/users/martyphee/orgs","repos_url":"https://api.github.com/users/martyphee/repos","events_url":"https://api.github.com/users/martyphee/events{/privacy}","received_events_url":"https://api.github.com/users/martyphee/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2015-12-28T20:29:47Z","updated_at":"2015-12-28T21:48:05Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/shakacode/react_on_rails/pulls/172","html_url":"https://github.com/shakacode/react_on_rails/pull/172","diff_url":"https://github.com/shakacode/react_on_rails/pull/172.diff","patch_url":"https://github.com/shakacode/react_on_rails/pull/172.patch"},"body":"This PR updates the `ServerRenderingPool` to handle including the `react_on_rails.js` file properly in production."},"comment":{"url":"https://api.github.com/repos/shakacode/react_on_rails/issues/comments/167663764","html_url":"https://github.com/shakacode/react_on_rails/pull/172#issuecomment-167663764","issue_url":"https://api.github.com/repos/shakacode/react_on_rails/issues/172","id":167663764,"user":{"login":"thewoolleyman","id":158,"avatar_url":"https://avatars.githubusercontent.com/u/158?v=3","gravatar_id":"","url":"https://api.github.com/users/thewoolleyman","html_url":"https://github.com/thewoolleyman","followers_url":"https://api.github.com/users/thewoolleyman/followers","following_url":"https://api.github.com/users/thewoolleyman/following{/other_user}","gists_url":"https://api.github.com/users/thewoolleyman/gists{/gist_id}","starred_url":"https://api.github.com/users/thewoolleyman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thewoolleyman/subscriptions","organizations_url":"https://api.github.com/users/thewoolleyman/orgs","repos_url":"https://api.github.com/users/thewoolleyman/repos","events_url":"https://api.github.com/users/thewoolleyman/events{/privacy}","received_events_url":"https://api.github.com/users/thewoolleyman/received_events","type":"User","site_admin":false},"created_at":"2015-12-28T21:48:04Z","updated_at":"2015-12-28T21:48:04Z","body":"@justin808 @martyphee Yes as I noted on #170  `Rails.application.assets` will always be nil when `config.assets.compile` is set to false in the Rails config (which is the normal case for a prod env).  And yes, this is a recent change in Sprockets that has broken other people as noted here: https://github.com/rails/sprockets-rails/issues/237\r\n\r\nSo, my only suggestion would be rather than basing this on production env like this (https://github.com/shakacode/react_on_rails/pull/172/files#diff-10c7b74a600ef3ecde9dca86ed42c16eR111), if we could somehow directly detect the `config.assets.compile` setting and base the decision off that, it would be better, and work even if they have that flag turned off in non-prod envs.\r\n"}}