Skip to content
This repository has been archived by the owner on Oct 11, 2019. It is now read-only.

undefined method alias_method_chain in Rails 5.2 #111

Open
ppires opened this issue Apr 23, 2018 · 0 comments · May be fixed by #112
Open

undefined method alias_method_chain in Rails 5.2 #111

ppires opened this issue Apr 23, 2018 · 0 comments · May be fixed by #112

Comments

@ppires
Copy link

ppires commented Apr 23, 2018

Hi, I just created a new project in rails 5.2 with wiselinks, and the app didn't start because the alias_method_chain has been removed from rails.

  58: from bin/rails:4:in `<main>'
  57: from /xxx/.rvm/gems/ruby-2.5.1/gems/activesupport-5.2.0/lib/active_support/dependencies.rb:283:in `require'
  56: from /xxx/.rvm/gems/ruby-2.5.1/gems/activesupport-5.2.0/lib/active_support/dependencies.rb:249:in `load_dependency'
  55: from /xxx/.rvm/gems/ruby-2.5.1/gems/activesupport-5.2.0/lib/active_support/dependencies.rb:283:in `block in require'
  54: from /xxx/.rvm/gems/ruby-2.5.1/gems/bootsnap-1.3.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:29:in `require'
  53: from /xxx/.rvm/gems/ruby-2.5.1/gems/bootsnap-1.3.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:20:in `require_with_bootsnap_lfi'
  52: from /xxx/.rvm/gems/ruby-2.5.1/gems/bootsnap-1.3.0/lib/bootsnap/load_path_cache/loaded_features_index.rb:65:in `register'
  51: from /xxx/.rvm/gems/ruby-2.5.1/gems/bootsnap-1.3.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:in `block in require_with_bootsnap_lfi'
  50: from /xxx/.rvm/gems/ruby-2.5.1/gems/bootsnap-1.3.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:in `require'
  49: from /xxx/.rvm/gems/ruby-2.5.1/gems/railties-5.2.0/lib/rails/commands.rb:18:in `<main>'
  48: from /xxx/.rvm/gems/ruby-2.5.1/gems/railties-5.2.0/lib/rails/command.rb:46:in `invoke'
  47: from /xxx/.rvm/gems/ruby-2.5.1/gems/railties-5.2.0/lib/rails/command/base.rb:65:in `perform'
  46: from /xxx/.rvm/gems/ruby-2.5.1/gems/thor-0.20.0/lib/thor.rb:387:in `dispatch'
  45: from /xxx/.rvm/gems/ruby-2.5.1/gems/thor-0.20.0/lib/thor/invocation.rb:126:in `invoke_command'
  44: from /xxx/.rvm/gems/ruby-2.5.1/gems/thor-0.20.0/lib/thor/command.rb:27:in `run'
  43: from /xxx/.rvm/gems/ruby-2.5.1/gems/railties-5.2.0/lib/rails/commands/server/server_command.rb:142:in `perform'
  42: from /xxx/.rvm/gems/ruby-2.5.1/gems/railties-5.2.0/lib/rails/commands/server/server_command.rb:142:in `tap'
  41: from /xxx/.rvm/gems/ruby-2.5.1/gems/railties-5.2.0/lib/rails/commands/server/server_command.rb:147:in `block in perform'
  40: from /xxx/.rvm/gems/ruby-2.5.1/gems/railties-5.2.0/lib/rails/commands/server/server_command.rb:51:in `start'
  39: from /xxx/.rvm/gems/ruby-2.5.1/gems/railties-5.2.0/lib/rails/commands/server/server_command.rb:89:in `log_to_stdout'
  38: from /xxx/.rvm/gems/ruby-2.5.1/gems/rack-2.0.4/lib/rack/server.rb:354:in `wrapped_app'
  37: from /xxx/.rvm/gems/ruby-2.5.1/gems/railties-5.2.0/lib/rails/commands/server/server_command.rb:27:in `app'
  36: from /xxx/.rvm/gems/ruby-2.5.1/gems/rack-2.0.4/lib/rack/server.rb:219:in `app'
  35: from /xxx/.rvm/gems/ruby-2.5.1/gems/rack-2.0.4/lib/rack/server.rb:319:in `build_app_and_options_from_config'
  34: from /xxx/.rvm/gems/ruby-2.5.1/gems/rack-2.0.4/lib/rack/builder.rb:40:in `parse_file'
  33: from /xxx/.rvm/gems/ruby-2.5.1/gems/rack-2.0.4/lib/rack/builder.rb:49:in `new_from_string'
  32: from /xxx/.rvm/gems/ruby-2.5.1/gems/rack-2.0.4/lib/rack/builder.rb:49:in `eval'
  31: from config.ru:in `<main>'
  30: from config.ru:in `new'
  29: from /xxx/.rvm/gems/ruby-2.5.1/gems/rack-2.0.4/lib/rack/builder.rb:55:in `initialize'
  28: from /xxx/.rvm/gems/ruby-2.5.1/gems/rack-2.0.4/lib/rack/builder.rb:55:in `instance_eval'
  27: from config.ru:3:in `block in <main>'
  26: from /xxx/.rvm/gems/ruby-2.5.1/gems/bootsnap-1.3.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:44:in `require_relative'
  25: from /xxx/.rvm/gems/ruby-2.5.1/gems/activesupport-5.2.0/lib/active_support/dependencies.rb:283:in `require'
  24: from /xxx/.rvm/gems/ruby-2.5.1/gems/activesupport-5.2.0/lib/active_support/dependencies.rb:249:in `load_dependency'
  23: from /xxx/.rvm/gems/ruby-2.5.1/gems/activesupport-5.2.0/lib/active_support/dependencies.rb:283:in `block in require'
  22: from /xxx/.rvm/gems/ruby-2.5.1/gems/bootsnap-1.3.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:29:in `require'
  21: from /xxx/.rvm/gems/ruby-2.5.1/gems/bootsnap-1.3.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:20:in `require_with_bootsnap_lfi'
  20: from /xxx/.rvm/gems/ruby-2.5.1/gems/bootsnap-1.3.0/lib/bootsnap/load_path_cache/loaded_features_index.rb:65:in `register'
  19: from /xxx/.rvm/gems/ruby-2.5.1/gems/bootsnap-1.3.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:in `block in require_with_bootsnap_lfi'
  18: from /xxx/.rvm/gems/ruby-2.5.1/gems/bootsnap-1.3.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:in `require'
  17: from /xxx/app/config/environment.rb:5:in `<main>'
  16: from /xxx/.rvm/gems/ruby-2.5.1/gems/railties-5.2.0/lib/rails/application.rb:361:in `initialize!'
  15: from /xxx/.rvm/gems/ruby-2.5.1/gems/railties-5.2.0/lib/rails/initializable.rb:60:in `run_initializers'
  14: from /xxx/.rvm/rubies/ruby-2.5.1/lib/ruby/2.5.0/tsort.rb:205:in `tsort_each'
  13: from /xxx/.rvm/rubies/ruby-2.5.1/lib/ruby/2.5.0/tsort.rb:226:in `tsort_each'
  12: from /xxx/.rvm/rubies/ruby-2.5.1/lib/ruby/2.5.0/tsort.rb:347:in `each_strongly_connected_component'
  11: from /xxx/.rvm/rubies/ruby-2.5.1/lib/ruby/2.5.0/tsort.rb:347:in `call'
  10: from /xxx/.rvm/rubies/ruby-2.5.1/lib/ruby/2.5.0/tsort.rb:347:in `each'
   9: from /xxx/.rvm/rubies/ruby-2.5.1/lib/ruby/2.5.0/tsort.rb:349:in `block in each_strongly_connected_component'
   8: from /xxx/.rvm/rubies/ruby-2.5.1/lib/ruby/2.5.0/tsort.rb:431:in `each_strongly_connected_component_from'
   7: from /xxx/.rvm/rubies/ruby-2.5.1/lib/ruby/2.5.0/tsort.rb:350:in `block (2 levels) in each_strongly_connected_component'
   6: from /xxx/.rvm/rubies/ruby-2.5.1/lib/ruby/2.5.0/tsort.rb:228:in `block in tsort_each'
   5: from /xxx/.rvm/gems/ruby-2.5.1/gems/railties-5.2.0/lib/rails/initializable.rb:61:in `block in run_initializers'
   4: from /xxx/.rvm/gems/ruby-2.5.1/gems/railties-5.2.0/lib/rails/initializable.rb:32:in `run'
   3: from /xxx/.rvm/gems/ruby-2.5.1/gems/railties-5.2.0/lib/rails/initializable.rb:32:in `instance_exec'
   2: from /xxx/.rvm/gems/ruby-2.5.1/gems/wiselinks-1.2.1/lib/wiselinks/rails.rb:9:in `block in <class:Engine>'
   1: from /xxx/.rvm/gems/ruby-2.5.1/gems/wiselinks-1.2.1/lib/wiselinks/rails.rb:9:in `include'
/xxx/.rvm/gems/ruby-2.5.1/gems/wiselinks-1.2.1/lib/wiselinks/request.rb:4:in `included': undefined method `alias_method_chain' for ActionDispatch::Request:Class (NoMethodError)
@ppires ppires linked a pull request Apr 23, 2018 that will close this issue
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant