From: Toshi MARUYAMA Date: Tue, 25 Jul 2017 15:38:56 +0000 (+0000) Subject: fix NameError (uninitialized constant) when "config.eager_load = true" (#26513) X-Git-Tag: 4.0.0~583 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=fc61598d55f5037912230a5ece9431515c731c30;p=redmine.git fix NameError (uninitialized constant) when "config.eager_load = true" (#26513) git-svn-id: http://svn.redmine.org/redmine/trunk@16882 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/app/helpers/queries_helper.rb b/app/helpers/queries_helper.rb index 5f2f53fc7..acab44536 100644 --- a/app/helpers/queries_helper.rb +++ b/app/helpers/queries_helper.rb @@ -17,6 +17,8 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +require 'redmine/export/csv' + module QueriesHelper include ApplicationHelper diff --git a/app/models/user_preference.rb b/app/models/user_preference.rb index 1bf60c7f6..efdc41e2d 100644 --- a/app/models/user_preference.rb +++ b/app/models/user_preference.rb @@ -15,6 +15,8 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +require 'redmine/my_page' + class UserPreference < ActiveRecord::Base include Redmine::SafeAttributes