From f204885d4a8208bbba0d37a50cdad6f59fa8b7cc Mon Sep 17 00:00:00 2001 From: Vasily Gotovko <vasily.gotovko@gmail.com> Date: Tue, 15 Jan 2013 18:01:47 +0300 Subject: [PATCH] Update loading hook --- init.rb | 2 +- .../hooks.rb} | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) rename lib/{hooks/view_account_login_bottom_hook.rb => redmine_omniauth_google/hooks.rb} (72%) diff --git a/init.rb b/init.rb index 8f67cbc..5dded29 100644 --- a/init.rb +++ b/init.rb @@ -1,5 +1,5 @@ require 'redmine' -require_dependency 'hooks/view_account_login_bottom_hook' +require_dependency 'redmine_omniauth_google/hooks' Redmine::Plugin.register :redmine_omniauth_google do name 'Redmine Omniauth Google plugin' diff --git a/lib/hooks/view_account_login_bottom_hook.rb b/lib/redmine_omniauth_google/hooks.rb similarity index 72% rename from lib/hooks/view_account_login_bottom_hook.rb rename to lib/redmine_omniauth_google/hooks.rb index 62df7df..80a7acc 100644 --- a/lib/hooks/view_account_login_bottom_hook.rb +++ b/lib/redmine_omniauth_google/hooks.rb @@ -1,5 +1,5 @@ -module Hooks - class ViewAccountLoginBottomHook < Redmine::Hook::ViewListener +module RedmineOmniauthGoogle + class Hooks < Redmine::Hook::ViewListener def view_account_login_bottom(context = {}) context[:controller].send(:render_to_string, { :partial => "hooks/view_account_login_bottom", -- GitLab