summaryrefslogtreecommitdiffstats
path: root/lib/redmine/views
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2016-10-29 10:10:31 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2016-10-29 10:10:31 +0000
commit8b86d5158e50d27de68a3c69c12b06e1af0deb52 (patch)
tree724ac0a770438aa579d94a77b6855361a329274c /lib/redmine/views
parent6ef3ecc030cfc744244bb15db2f2ef0eb46ed439 (diff)
downloadredmine-8b86d5158e50d27de68a3c69c12b06e1af0deb52.tar.gz
redmine-8b86d5158e50d27de68a3c69c12b06e1af0deb52.zip
Moves blocks definition to Redmine::MyPage.
git-svn-id: http://svn.redmine.org/redmine/trunk@15930 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib/redmine/views')
-rw-r--r--lib/redmine/views/my_page/block.rb32
1 files changed, 0 insertions, 32 deletions
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