{"action":"closed","issue":{"url":"https://api.github.com/repos/plataformatec/devise/issues/3454","labels_url":"https://api.github.com/repos/plataformatec/devise/issues/3454/labels{/name}","comments_url":"https://api.github.com/repos/plataformatec/devise/issues/3454/comments","events_url":"https://api.github.com/repos/plataformatec/devise/issues/3454/events","html_url":"https://github.com/plataformatec/devise/issues/3454","id":56888034,"number":3454,"title":"Still getting \"undefined method `merge!'\" with Rails 4.2 and Devise 3.4","user":{"login":"Zensavona","id":425801,"avatar_url":"https://avatars.githubusercontent.com/u/425801?v=3","gravatar_id":"","url":"https://api.github.com/users/Zensavona","html_url":"https://github.com/Zensavona","followers_url":"https://api.github.com/users/Zensavona/followers","following_url":"https://api.github.com/users/Zensavona/following{/other_user}","gists_url":"https://api.github.com/users/Zensavona/gists{/gist_id}","starred_url":"https://api.github.com/users/Zensavona/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Zensavona/subscriptions","organizations_url":"https://api.github.com/users/Zensavona/orgs","repos_url":"https://api.github.com/users/Zensavona/repos","events_url":"https://api.github.com/users/Zensavona/events{/privacy}","received_events_url":"https://api.github.com/users/Zensavona/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-02-07T00:35:38Z","updated_at":"2015-02-07T12:50:35Z","closed_at":"2015-02-07T12:50:35Z","body":"I've had a look online and it seemed that this issue was solved with Devise 3.4.0? I'm still getting this error with the latest version of Devise and Rails 4.2, here's the error and a stack trace:\r\n\r\nThe error is thrown for the line in my `routes.rb` which contains `devise_for :users`.\r\n\r\n````\r\nundefined method `merge!' for #<ActionDispatch::Routing::Mapper::Scope:0x007f9ab9338c80>\r\n````\r\n\r\nAnd a stack trace:\r\n\r\n````\r\ndevise (3.2.4) lib/devise/rails/routes.rb:455:in `ensure in with_devise_exclusive_scope'\r\ndevise (3.2.4) lib/devise/rails/routes.rb:455:in `with_devise_exclusive_scope'\r\ndevise (3.2.4) lib/devise/rails/routes.rb:246:in `block (2 levels) in devise_for'\r\ndevise (3.2.4) lib/devise/rails/routes.rb:349:in `block in devise_scope'\r\nactionpack (4.2.0) lib/action_dispatch/routing/mapper.rb:940:in `block in constraints'\r\nactionpack (4.2.0) lib/action_dispatch/routing/mapper.rb:816:in `scope'\r\nactionpack (4.2.0) lib/action_dispatch/routing/mapper.rb:940:in `constraints'\r\ndevise (3.2.4) lib/devise/rails/routes.rb:348:in `devise_scope'\r\ndevise (3.2.4) lib/devise/rails/routes.rb:245:in `block in devise_for'\r\ndevise (3.2.4) lib/devise/rails/routes.rb:220:in `each'\r\ndevise (3.2.4) lib/devise/rails/routes.rb:220:in `devise_for'\r\nactionpack (4.2.0) lib/action_dispatch/routing/route_set.rb:423:in `instance_exec'\r\nactionpack (4.2.0) lib/action_dispatch/routing/route_set.rb:423:in `eval_block'\r\nactionpack (4.2.0) lib/action_dispatch/routing/route_set.rb:401:in `draw'\r\nactivesupport (4.2.0) lib/active_support/dependencies.rb:268:in `load'\r\nactivesupport (4.2.0) lib/active_support/dependencies.rb:268:in `block in load'\r\nactivesupport (4.2.0) lib/active_support/dependencies.rb:240:in `load_dependency'\r\nactivesupport (4.2.0) lib/active_support/dependencies.rb:268:in `load'\r\nrailties (4.2.0) lib/rails/application/routes_reloader.rb:40:in `block in load_paths'\r\nrailties (4.2.0) lib/rails/application/routes_reloader.rb:40:in `each'\r\nrailties (4.2.0) lib/rails/application/routes_reloader.rb:40:in `load_paths'\r\nrailties (4.2.0) lib/rails/application/routes_reloader.rb:16:in `reload!'\r\nrailties (4.2.0) lib/rails/application/routes_reloader.rb:26:in `block in updater'\r\nactivesupport (4.2.0) lib/active_support/file_update_checker.rb:75:in `call'\r\nactivesupport (4.2.0) lib/active_support/file_update_checker.rb:75:in `execute'\r\nrailties (4.2.0) lib/rails/application/routes_reloader.rb:7:in `execute'\r\nrailties (4.2.0) lib/rails/application/finisher.rb:81:in `block (2 levels) in <module:Finisher>'\r\nactivesupport (4.2.0) lib/active_support/callbacks.rb:441:in `instance_exec'\r\nactivesupport (4.2.0) lib/active_support/callbacks.rb:441:in `block in make_lambda'\r\nactivesupport (4.2.0) lib/active_support/callbacks.rb:189:in `call'\r\nactivesupport (4.2.0) lib/active_support/callbacks.rb:189:in `block in simple'\r\nactivesupport (4.2.0) lib/active_support/callbacks.rb:190:in `call'\r\nactivesupport (4.2.0) lib/active_support/callbacks.rb:190:in `block in simple'\r\nactivesupport (4.2.0) lib/active_support/callbacks.rb:190:in `call'\r\nactivesupport (4.2.0) lib/active_support/callbacks.rb:190:in `block in simple'\r\nactivesupport (4.2.0) lib/active_support/callbacks.rb:190:in `call'\r\nactivesupport (4.2.0) lib/active_support/callbacks.rb:190:in `block in simple'\r\nactivesupport (4.2.0) lib/active_support/callbacks.rb:92:in `call'\r\nactivesupport (4.2.0) lib/active_support/callbacks.rb:92:in `_run_callbacks'\r\nactivesupport (4.2.0) lib/active_support/callbacks.rb:734:in `_run_prepare_callbacks'\r\nactivesupport (4.2.0) lib/active_support/callbacks.rb:81:in `run_callbacks'\r\nactionpack (4.2.0) lib/action_dispatch/middleware/reloader.rb:83:in `prepare!'\r\nactionpack (4.2.0) lib/action_dispatch/middleware/reloader.rb:71:in `call'\r\nactionpack (4.2.0) lib/action_dispatch/middleware/remote_ip.rb:78:in `call'\r\nweb-console (2.0.0) lib/action_dispatch/debug_exceptions.rb:18:in `middleware_call'\r\nweb-console (2.0.0) lib/action_dispatch/debug_exceptions.rb:13:in `call'\r\nactionpack (4.2.0) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'\r\nrailties (4.2.0) lib/rails/rack/logger.rb:38:in `call_app'\r\nrailties (4.2.0) lib/rails/rack/logger.rb:20:in `block in call'\r\nactivesupport (4.2.0) lib/active_support/tagged_logging.rb:68:in `block in tagged'\r\nactivesupport (4.2.0) lib/active_support/tagged_logging.rb:26:in `tagged'\r\nactivesupport (4.2.0) lib/active_support/tagged_logging.rb:68:in `tagged'\r\nrailties (4.2.0) lib/rails/rack/logger.rb:20:in `call'\r\nactionpack (4.2.0) lib/action_dispatch/middleware/request_id.rb:21:in `call'\r\nrack (1.6.0) lib/rack/methodoverride.rb:22:in `call'\r\nrack (1.6.0) lib/rack/runtime.rb:18:in `call'\r\nactivesupport (4.2.0) lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call'\r\nrack (1.6.0) lib/rack/lock.rb:17:in `call'\r\nactionpack (4.2.0) lib/action_dispatch/middleware/static.rb:113:in `call'\r\nrack (1.6.0) lib/rack/sendfile.rb:113:in `call'\r\nrailties (4.2.0) lib/rails/engine.rb:518:in `call'\r\nrailties (4.2.0) lib/rails/application.rb:164:in `call'\r\nrack (1.6.0) lib/rack/lock.rb:17:in `call'\r\nrack (1.6.0) lib/rack/content_length.rb:15:in `call'\r\nrack (1.6.0) lib/rack/handler/webrick.rb:89:in `service'\r\n/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/webrick/httpserver.rb:138:in `service'\r\n/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/webrick/httpserver.rb:94:in `run'\r\n/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/webrick/server.rb:295:in `block in start_thread'\r\n````\r\n\r\nAlso FWIW I can make the error go away by commenting out `devise_for :users` from `routes.rb`, but I'm not exactly sure what impact this has on the application.\r\n\r\n\r\nAny help would be greatly appreciated :+1: "}}