Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Deprecated alias_method_chain called in hosts_controller_extensions #20

Open
ccheline opened this issue Apr 22, 2019 · 3 comments
Open

Comments

@ccheline
Copy link

Upgrading foreman to 1.17 and performing foreman-rake db:migrate resulted the following error:
NoMethodError: undefined method alias_method_chain' for HostsController:Class Did you mean? alias_method /opt/rh/rh-ruby24/root/usr/local/share/gems/gems/foreman_host_rundeck-0.0.3/app/controllers/concerns/foreman_host_rundeck/hosts_controller_extensions.rb:6:in block in module:HostsControllerExtensions'

This appears to be related to the deprecation of alias_method_chain in Rails 5: rails/rails#19434

@anthonysomerset
Copy link

this actually causes foreman to fail to start at least in v2

@anthonysomerset
Copy link

it looks like #19 should fix this

@anthonysomerset
Copy link

FYI this breaks further in current 3.6 release (not sure when breakage started but seems after 3.4 maybe)

brechsteiner@65145f0 - fixes in 3.6

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants