{"action":"opened","issue":{"url":"https://api.github.com/repos/segmentio/analytics-ruby/issues/107","repository_url":"https://api.github.com/repos/segmentio/analytics-ruby","labels_url":"https://api.github.com/repos/segmentio/analytics-ruby/issues/107/labels{/name}","comments_url":"https://api.github.com/repos/segmentio/analytics-ruby/issues/107/comments","events_url":"https://api.github.com/repos/segmentio/analytics-ruby/issues/107/events","html_url":"https://github.com/segmentio/analytics-ruby/issues/107","id":163775822,"number":107,"title":"Resque worker throws undefined local_constants method for Segment::Analytics","user":{"login":"idl3","id":498136,"avatar_url":"https://avatars.githubusercontent.com/u/498136?v=3","gravatar_id":"","url":"https://api.github.com/users/idl3","html_url":"https://github.com/idl3","followers_url":"https://api.github.com/users/idl3/followers","following_url":"https://api.github.com/users/idl3/following{/other_user}","gists_url":"https://api.github.com/users/idl3/gists{/gist_id}","starred_url":"https://api.github.com/users/idl3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/idl3/subscriptions","organizations_url":"https://api.github.com/users/idl3/orgs","repos_url":"https://api.github.com/users/idl3/repos","events_url":"https://api.github.com/users/idl3/events{/privacy}","received_events_url":"https://api.github.com/users/idl3/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-07-05T05:45:46Z","updated_at":"2016-07-05T05:45:46Z","closed_at":null,"body":"Trying to run a resque worker and it throws the following error, any idea what may cause this? Is it a resque problem?\r\n\r\n```\r\nbundle exec rake environment resque:work QUEUE=mailer                                                                                                                                                                               rvm:ruby-2.2.3\r\nrake aborted!\r\nNoMethodError: undefined method `local_constants' for #<Segment::Analytics:0x007fe311510b48>\r\n/Users/ernie/.rvm/gems/ruby-2.2.3/gems/analytics-ruby-2.1.0/lib/segment/analytics.rb:21:in `method_missing'\r\n/Users/ernie/.rvm/gems/ruby-2.2.3/gems/activesupport-4.2.5.1/lib/active_support/dependencies.rb:146:in `block in watch_namespaces'\r\n/Users/ernie/.rvm/gems/ruby-2.2.3/gems/activesupport-4.2.5.1/lib/active_support/dependencies.rb:143:in `map'\r\n/Users/ernie/.rvm/gems/ruby-2.2.3/gems/activesupport-4.2.5.1/lib/active_support/dependencies.rb:143:in `watch_namespaces'\r\n/Users/ernie/.rvm/gems/ruby-2.2.3/gems/activesupport-4.2.5.1/lib/active_support/dependencies.rb:643:in `new_constants_in'\r\n/Users/ernie/.rvm/gems/ruby-2.2.3/gems/activesupport-4.2.5.1/lib/active_support/dependencies.rb:456:in `load_file'\r\n/Users/ernie/.rvm/gems/ruby-2.2.3/gems/activesupport-4.2.5.1/lib/active_support/dependencies.rb:354:in `require_or_load'\r\n/Users/ernie/.rvm/gems/ruby-2.2.3/gems/activesupport-4.2.5.1/lib/active_support/dependencies.rb:317:in `depend_on'\r\n/Users/ernie/.rvm/gems/ruby-2.2.3/gems/activesupport-4.2.5.1/lib/active_support/dependencies.rb:233:in `require_dependency'\r\n/Users/ernie/.rvm/gems/ruby-2.2.3/gems/railties-4.2.5.1/lib/rails/engine.rb:472:in `block (2 levels) in eager_load!'\r\n/Users/ernie/.rvm/gems/ruby-2.2.3/gems/railties-4.2.5.1/lib/rails/engine.rb:471:in `each'\r\n/Users/ernie/.rvm/gems/ruby-2.2.3/gems/railties-4.2.5.1/lib/rails/engine.rb:471:in `block in eager_load!'\r\n/Users/ernie/.rvm/gems/ruby-2.2.3/gems/railties-4.2.5.1/lib/rails/engine.rb:469:in `each'\r\n/Users/ernie/.rvm/gems/ruby-2.2.3/gems/railties-4.2.5.1/lib/rails/engine.rb:469:in `eager_load!'\r\n/Users/ernie/.rvm/gems/ruby-2.2.3/gems/resque-1.26.0/lib/resque/tasks.rb:43:in `block (2 levels) in <top (required)>'\r\n/Users/ernie/.rvm/gems/ruby-2.2.3/gems/rake-11.2.2/exe/rake:27:in `<top (required)>'\r\n/Users/ernie/.rvm/gems/ruby-2.2.3/bin/ruby_executable_hooks:15:in `eval'\r\n/Users/ernie/.rvm/gems/ruby-2.2.3/bin/ruby_executable_hooks:15:in `<main>'\r\nTasks: TOP => resque:work => resque:preload\r\n(See full trace by running task with --trace)\r\n```"}}
{"actor":{"display_login":"idl3"}}