theforeman / foreman_expire_hosts

Foreman plugin for limiting host lifetime
GNU General Public License v3.0
5 stars 12 forks source link

plugin causes failure rendering host form #57

Closed timogoebel closed 4 years ago

timogoebel commented 4 years ago

Displaying the host form during the import of a VM fails with this error:

ActionView::Template::Error
undefined method `datepicker_f' for #<#<Class:0x0000000015bce700>:0x0000000015be1918> Did you mean? datetime_f

https://github.com/theforeman/foreman_expire_hosts/blob/bdb49e34656af160a4688181aeaee38b05a90f96/lib/foreman_expire_hosts/engine.rb#L57

needs to be changed to

::HostsHelper.include ForemanExpireHosts::HostsHelperExtensions