{"action":"opened","issue":{"url":"https://api.github.com/repos/alexreisner/geocoder/issues/1066","repository_url":"https://api.github.com/repos/alexreisner/geocoder","labels_url":"https://api.github.com/repos/alexreisner/geocoder/issues/1066/labels{/name}","comments_url":"https://api.github.com/repos/alexreisner/geocoder/issues/1066/comments","events_url":"https://api.github.com/repos/alexreisner/geocoder/issues/1066/events","html_url":"https://github.com/alexreisner/geocoder/issues/1066","id":159145205,"number":1066,"title":"NoMethodError: private method include called for ActionDispatch::Request:Class","user":{"login":"ebouchut","id":73331,"avatar_url":"https://avatars.githubusercontent.com/u/73331?v=3","gravatar_id":"","url":"https://api.github.com/users/ebouchut","html_url":"https://github.com/ebouchut","followers_url":"https://api.github.com/users/ebouchut/followers","following_url":"https://api.github.com/users/ebouchut/following{/other_user}","gists_url":"https://api.github.com/users/ebouchut/gists{/gist_id}","starred_url":"https://api.github.com/users/ebouchut/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ebouchut/subscriptions","organizations_url":"https://api.github.com/users/ebouchut/orgs","repos_url":"https://api.github.com/users/ebouchut/repos","events_url":"https://api.github.com/users/ebouchut/events{/privacy}","received_events_url":"https://api.github.com/users/ebouchut/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-06-08T11:53:22Z","updated_at":"2016-06-08T11:53:22Z","closed_at":null,"body":"Hi,\r\n\r\nFirst off, thank you for the gem, it is very useful.\r\n\r\nDuring `rake assets:precompile` I have the following error with either v1.3.5 and v1.3.6.\r\n\r\n```\r\nrake aborted!\r\nNoMethodError: private method `include' called for ActionDispatch::Request:Class\r\n.../gems/ruby-2.0.0-p195/gems/geocoder-1.3.5/lib/geocoder/request.rb:82:in `<top (required)>'-\r\n.../gems/ruby-2.0.0-p195/gems/activesupport-4.0.9/lib/active_support/dependencies.rb:229:in `require'\r\n.../gems/ruby-2.0.0-p195/gems/activesupport-4.0.9/lib/active_support/dependencies.rb:229:in `block in require'\r\n.../gems/ruby-2.0.0-p195/gems/activesupport-4.0.9/lib/active_support/dependencies.rb:214:in `load_dependency'\r\n.../gems/ruby-2.0.0-p195/gems/activesupport-4.0.9/lib/active_support/dependencies.rb:229:in `require'\r\n.../gems/ruby-2.0.0-p195/gems/geocoder-1.3.5/lib/geocoder.rb:8:in `<top (required)>'\r\n.../gems/ruby-2.0.0-p195@global/gems/bundler-1.3.5/lib/bundler/runtime.rb:72:in `require'\r\n.../gems/ruby-2.0.0-p195@global/gems/bundler-1.3.5/lib/bundler/runtime.rb:72:in `block (2 levels) in require'\r\n.../gems/ruby-2.0.0-p195@global/gems/bundler-1.3.5/lib/bundler/runtime.rb:70:in `each'\r\n.../gems/ruby-2.0.0-p195@global/gems/bundler-1.3.5/lib/bundler/runtime.rb:70:in `block in require'\r\n.../gems/ruby-2.0.0-p195@global/gems/bundler-1.3.5/lib/bundler/runtime.rb:59:in `each'\r\n.../gems/ruby-2.0.0-p195@global/gems/bundler-1.3.5/lib/bundler/runtime.rb:59:in `require'\r\n.../gems/ruby-2.0.0-p195@global/gems/bundler-1.3.5/lib/bundler.rb:132:in `require'\r\n.../config/application.rb:8:in `<top (required)>'\r\n.../Rakefile:4:in `require'\r\n.../Rakefile:4:in `<top (required)>'\r\n(See full trace by running \r\n```\r\nMy understanding is that `Geocoder::Request` cannot call the private method `Module.include`.\r\n> ActionDispatch::Request.include Geocoder::Request\r\n\r\nI found a [fix](https://github.com/Teacups/geocoder/blob/bug_no_method_ActionDispatchRequest.include/lib/geocoder/request.rb#L82)\r\n> ActionDispatch::Request.\\_\\_send\\_\\_(:include, Geocoder::Request)\r\n\r\nI have a [fixed branch](https://github.com/Teacups/geocoder/tree/bug_no_method_ActionDispatchRequest.include) handy, should you be willing to accept a pull-request.\r\nJust let me know what is your take on this issue.\r\n\r\n### Environment\r\n\r\n- Ruby 2.0.0 (2013-05-14 patchlevel 195) [x86_64-linux] 😞\r\n- Rails: 4.0.9  😞\r\n- Bundler 1.3.5\r\n- Rubygems 2.4.6\r\n- rvm 1.21.14 (stable)\r\n\r\nThanks"}}
{"actor":{"display_login":"ebouchut"}}