From cf51441688f0f769bd87ff2015dc6b76f308cb3c Mon Sep 17 00:00:00 2001 From: bearns Date: Wed, 14 Oct 2020 23:52:37 +0300 Subject: [PATCH] Cleanup and add missing --- redmine/redmine_ldap_passwd/init.rb~ | 36 ---------------------------- 1 file changed, 36 deletions(-) delete mode 100644 redmine/redmine_ldap_passwd/init.rb~ diff --git a/redmine/redmine_ldap_passwd/init.rb~ b/redmine/redmine_ldap_passwd/init.rb~ deleted file mode 100644 index 9f140ec..0000000 --- a/redmine/redmine_ldap_passwd/init.rb~ +++ /dev/null @@ -1,36 +0,0 @@ -require 'redmine' - -require_dependency 'redmine/lib/plugins/redmine_ldap_passwd/lib/redmine_ldap_passwd_my_controller_patch' -require_dependency 'redmine_ldap_passwd_auth_sources_helper_patch' -require_dependency 'redmine_ldap_passwd_account_controller_patch' - -Redmine::Plugin.register :redmine_ldap_passwd do - name 'Redmine LDAP Change Password' - author 'Yura Zaplavnov' - description 'The plugin extends AuthSourceLdap to introduce the ability to recover or change user password.' - version '3.0.1' - url 'https://github.com/xeagle2/redmine_ldap_passwd' - author_url 'https://github.com/xeagle2' -end - -require 'dispatcher' unless Rails::VERSION::MAJOR >= 3 - -if Rails::VERSION::MAJOR >= 5 - ActiveSupport::Reloader.to_prepare do - MyController.send(:include, RedmineLdapPasswd::MyControllerPatch) - AuthSourcesHelper.send(:include, RedmineLdapPasswd::AuthSourcesHelperPatch) - AccountController.send(:include, RedmineLdapPasswd::AccountControllerPatch) - end -elsif Rails::VERSION::MAJOR >= 3 - ActionDispatch::Callbacks.to_prepare do - MyController.send(:include, RedmineLdapPasswd::MyControllerPatch) - AuthSourcesHelper.send(:include, RedmineLdapPasswd::AuthSourcesHelperPatch) - AccountController.send(:include, RedmineLdapPasswd::AccountControllerPatch) - end -else - Dispatcher.to_prepare do - MyController.send(:include, RedmineLdapPasswd::MyControllerPatch) - AuthSourcesHelper.send(:include, RedmineLdapPasswd::AuthSourcesHelperPatch) - AccountController.send(:include, RedmineLdapPasswd::AccountControllerPatch) - end -end \ No newline at end of file