{"action":"created","issue":{"url":"https://api.github.com/repos/mongomapper/mongomapper/issues/612","labels_url":"https://api.github.com/repos/mongomapper/mongomapper/issues/612/labels{/name}","comments_url":"https://api.github.com/repos/mongomapper/mongomapper/issues/612/comments","events_url":"https://api.github.com/repos/mongomapper/mongomapper/issues/612/events","html_url":"https://github.com/mongomapper/mongomapper/issues/612","id":89828839,"number":612,"title":"Heroku NameError: uninitialized constant MongoMapper::Railtie::YAML","user":{"login":"Deekor","id":1904267,"avatar_url":"https://avatars.githubusercontent.com/u/1904267?v=3","gravatar_id":"","url":"https://api.github.com/users/Deekor","html_url":"https://github.com/Deekor","followers_url":"https://api.github.com/users/Deekor/followers","following_url":"https://api.github.com/users/Deekor/following{/other_user}","gists_url":"https://api.github.com/users/Deekor/gists{/gist_id}","starred_url":"https://api.github.com/users/Deekor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Deekor/subscriptions","organizations_url":"https://api.github.com/users/Deekor/orgs","repos_url":"https://api.github.com/users/Deekor/repos","events_url":"https://api.github.com/users/Deekor/events{/privacy}","received_events_url":"https://api.github.com/users/Deekor/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-06-20T22:37:54Z","updated_at":"2015-07-13T17:48:18Z","closed_at":null,"body":"I am trying to push a `Rails 4` app using `MongoMapper` to Heroku for the first time.\r\n\r\nI am getting the error:\r\n\r\n\r\n    remote:        Running: rake assets:precompile\r\n    remote:        rake aborted!\r\n    remote:        NameError: uninitialized constant MongoMapper::Railtie::YAML\r\n\r\nWhat am I doing wrong?"},"comment":{"url":"https://api.github.com/repos/mongomapper/mongomapper/issues/comments/121004108","html_url":"https://github.com/mongomapper/mongomapper/issues/612#issuecomment-121004108","issue_url":"https://api.github.com/repos/mongomapper/mongomapper/issues/612","id":121004108,"user":{"login":"djroze","id":2459149,"avatar_url":"https://avatars.githubusercontent.com/u/2459149?v=3","gravatar_id":"","url":"https://api.github.com/users/djroze","html_url":"https://github.com/djroze","followers_url":"https://api.github.com/users/djroze/followers","following_url":"https://api.github.com/users/djroze/following{/other_user}","gists_url":"https://api.github.com/users/djroze/gists{/gist_id}","starred_url":"https://api.github.com/users/djroze/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/djroze/subscriptions","organizations_url":"https://api.github.com/users/djroze/orgs","repos_url":"https://api.github.com/users/djroze/repos","events_url":"https://api.github.com/users/djroze/events{/privacy}","received_events_url":"https://api.github.com/users/djroze/received_events","type":"User","site_admin":false},"created_at":"2015-07-13T17:48:18Z","updated_at":"2015-07-13T17:48:18Z","body":"I encountered this issue as well when executing in production mode a Rails app that uses MongoMapper v.0.13.1. The problem did not arise when running in development mode. I added a `require 'yaml'` to my config/application.rb, as follows (this seemed to me like a more suitable place than Gemfile):\r\n\r\n    require \"rails\"\r\n    require \"yaml\"\r\n    # Pick the frameworks you want:\r\n\r\nWould be curious to know if this is a bug in the library or if there's a change that needs to be made to some environment-specific initializer in the Rails app (e.g. something getting loaded/required in development mode that shouldn't be restricted to that mode only)."}}