{"action":"created","issue":{"url":"https://api.github.com/repos/zendesk/samson/issues/318","labels_url":"https://api.github.com/repos/zendesk/samson/issues/318/labels{/name}","comments_url":"https://api.github.com/repos/zendesk/samson/issues/318/comments","events_url":"https://api.github.com/repos/zendesk/samson/issues/318/events","html_url":"https://github.com/zendesk/samson/pull/318","id":64528943,"number":318,"title":"Fix preload test when executing rake tasks.","user":{"login":"zendesk-shender","id":8860832,"avatar_url":"https://avatars.githubusercontent.com/u/8860832?v=3","gravatar_id":"","url":"https://api.github.com/users/zendesk-shender","html_url":"https://github.com/zendesk-shender","followers_url":"https://api.github.com/users/zendesk-shender/followers","following_url":"https://api.github.com/users/zendesk-shender/following{/other_user}","gists_url":"https://api.github.com/users/zendesk-shender/gists{/gist_id}","starred_url":"https://api.github.com/users/zendesk-shender/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zendesk-shender/subscriptions","organizations_url":"https://api.github.com/users/zendesk-shender/orgs","repos_url":"https://api.github.com/users/zendesk-shender/repos","events_url":"https://api.github.com/users/zendesk-shender/events{/privacy}","received_events_url":"https://api.github.com/users/zendesk-shender/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-03-26T13:40:51Z","updated_at":"2015-03-26T23:02:54Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/zendesk/samson/pulls/318","html_url":"https://github.com/zendesk/samson/pull/318","diff_url":"https://github.com/zendesk/samson/pull/318.diff","patch_url":"https://github.com/zendesk/samson/pull/318.patch"},"body":"When executing certain rake tasks that initialize the rails environment, it was throwing an error due to the preload check in /initializers/zz.rb\r\n\r\n```\r\n$  bundle exec rake db:setup\r\nrake aborted!\r\nfalse should not be loaded\r\n/Users/shender/Code/zendesk/samson/config/initializers/zz.rb:14:in `block (2 levels) in <top (required)>'\r\n/Users/shender/Code/zendesk/samson/config/initializers/zz.rb:14:in `each'\r\n/Users/shender/Code/zendesk/samson/config/initializers/zz.rb:14:in `block in <top (required)>'\r\n/Users/shender/Code/zendesk/samson/config/environment.rb:5:in `<top (required)>'\r\nTasks: TOP => db:setup => db:schema:load_if_ruby => environment\r\n(See full trace by running task with --trace)\r\n```\r\n\r\n/cc @zendesk/runway @samson\r\n\r\n### References\r\n - Jira link:\r\n\r\n### Risks\r\n - None"},"comment":{"url":"https://api.github.com/repos/zendesk/samson/issues/comments/86748967","html_url":"https://github.com/zendesk/samson/pull/318#issuecomment-86748967","issue_url":"https://api.github.com/repos/zendesk/samson/issues/318","id":86748967,"user":{"login":"sandlerr","id":5535625,"avatar_url":"https://avatars.githubusercontent.com/u/5535625?v=3","gravatar_id":"","url":"https://api.github.com/users/sandlerr","html_url":"https://github.com/sandlerr","followers_url":"https://api.github.com/users/sandlerr/followers","following_url":"https://api.github.com/users/sandlerr/following{/other_user}","gists_url":"https://api.github.com/users/sandlerr/gists{/gist_id}","starred_url":"https://api.github.com/users/sandlerr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sandlerr/subscriptions","organizations_url":"https://api.github.com/users/sandlerr/orgs","repos_url":"https://api.github.com/users/sandlerr/repos","events_url":"https://api.github.com/users/sandlerr/events{/privacy}","received_events_url":"https://api.github.com/users/sandlerr/received_events","type":"User","site_admin":false},"created_at":"2015-03-26T23:02:54Z","updated_at":"2015-03-26T23:02:54Z","body":"so the logic is: if you're not running a rake task, make sure rake hasn't been loaded? :+1:"}}