From 8b86d5158e50d27de68a3c69c12b06e1af0deb52 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Sat, 29 Oct 2016 10:10:31 +0000 Subject: Moves blocks definition to Redmine::MyPage. git-svn-id: http://svn.redmine.org/redmine/trunk@15930 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- lib/redmine/views/my_page/block.rb | 32 -------------------------------- 1 file changed, 32 deletions(-) delete mode 100644 lib/redmine/views/my_page/block.rb (limited to 'lib/redmine/views') diff --git a/lib/redmine/views/my_page/block.rb b/lib/redmine/views/my_page/block.rb deleted file mode 100644 index 07398d788..000000000 --- a/lib/redmine/views/my_page/block.rb +++ /dev/null @@ -1,32 +0,0 @@ -# Redmine - project management software -# Copyright (C) 2006-2016 Jean-Philippe Lang -# -# This program is free software; you can redistribute it and/or -# modify it under the terms of the GNU General Public License -# as published by the Free Software Foundation; either version 2 -# of the License, or (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - -module Redmine - module Views - module MyPage - module Block - def self.additional_blocks - @@additional_blocks ||= Dir.glob("#{Redmine::Plugin.directory}/*/app/views/my/blocks/_*.{rhtml,erb}").inject({}) do |h,file| - name = File.basename(file).split('.').first.gsub(/^_/, '') - h[name] = name.to_sym - h - end - end - end - end - end -end -- cgit v1.2.3