Commit 1eee7312 authored by Eric Davis's avatar Eric Davis

[#289] Remove single helpers in favor of :all in ApplicationController

parent d1441707
...@@ -16,7 +16,6 @@ ...@@ -16,7 +16,6 @@
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
class AccountController < ApplicationController class AccountController < ApplicationController
helper :custom_fields
include CustomFieldsHelper include CustomFieldsHelper
# prevents login action to be filtered by check_if_login_required application scope filter # prevents login action to be filtered by check_if_login_required application scope filter
......
...@@ -20,7 +20,6 @@ class AdminController < ApplicationController ...@@ -20,7 +20,6 @@ class AdminController < ApplicationController
before_filter :require_admin before_filter :require_admin
helper :sort
include SortHelper include SortHelper
def index def index
......
...@@ -19,6 +19,7 @@ require 'uri' ...@@ -19,6 +19,7 @@ require 'uri'
require 'cgi' require 'cgi'
class ApplicationController < ActionController::Base class ApplicationController < ActionController::Base
helper :all
protected protected
......
...@@ -20,11 +20,8 @@ class BoardsController < ApplicationController ...@@ -20,11 +20,8 @@ class BoardsController < ApplicationController
before_filter :find_project, :find_board_if_available, :authorize before_filter :find_project, :find_board_if_available, :authorize
accept_key_auth :index, :show accept_key_auth :index, :show
helper :messages
include MessagesHelper include MessagesHelper
helper :sort
include SortHelper include SortHelper
helper :watchers
include WatchersHelper include WatchersHelper
def index def index
......
...@@ -4,11 +4,7 @@ class CalendarsController < ApplicationController ...@@ -4,11 +4,7 @@ class CalendarsController < ApplicationController
rescue_from Query::StatementInvalid, :with => :query_statement_invalid rescue_from Query::StatementInvalid, :with => :query_statement_invalid
helper :issues
helper :projects
helper :queries
include QueriesHelper include QueriesHelper
helper :sort
include SortHelper include SortHelper
def show def show
......
class ContextMenusController < ApplicationController class ContextMenusController < ApplicationController
helper :watchers
def issues def issues
@issues = Issue.visible.all(:conditions => {:id => params[:ids]}, :include => :project) @issues = Issue.visible.all(:conditions => {:id => params[:ids]}, :include => :project)
......
...@@ -23,7 +23,6 @@ class DocumentsController < ApplicationController ...@@ -23,7 +23,6 @@ class DocumentsController < ApplicationController
before_filter :find_project_from_association, :except => [:index, :new] before_filter :find_project_from_association, :except => [:index, :new]
before_filter :authorize before_filter :authorize
helper :attachments
def index def index
@sort_by = %w(category date title author).include?(params[:sort_by]) ? params[:sort_by] : 'category' @sort_by = %w(category date title author).include?(params[:sort_by]) ? params[:sort_by] : 'category'
......
...@@ -20,7 +20,6 @@ class EnumerationsController < ApplicationController ...@@ -20,7 +20,6 @@ class EnumerationsController < ApplicationController
before_filter :require_admin before_filter :require_admin
helper :custom_fields
include CustomFieldsHelper include CustomFieldsHelper
def index def index
......
...@@ -4,7 +4,6 @@ class FilesController < ApplicationController ...@@ -4,7 +4,6 @@ class FilesController < ApplicationController
before_filter :find_project_by_project_id before_filter :find_project_by_project_id
before_filter :authorize before_filter :authorize
helper :sort
include SortHelper include SortHelper
def index def index
......
...@@ -4,12 +4,7 @@ class GanttsController < ApplicationController ...@@ -4,12 +4,7 @@ class GanttsController < ApplicationController
rescue_from Query::StatementInvalid, :with => :query_statement_invalid rescue_from Query::StatementInvalid, :with => :query_statement_invalid
helper :gantt
helper :issues
helper :projects
helper :queries
include QueriesHelper include QueriesHelper
helper :sort
include SortHelper include SortHelper
include Redmine::Export::PDF include Redmine::Export::PDF
......
...@@ -20,7 +20,6 @@ class GroupsController < ApplicationController ...@@ -20,7 +20,6 @@ class GroupsController < ApplicationController
before_filter :require_admin before_filter :require_admin
helper :custom_fields
# GET /groups # GET /groups
# GET /groups.xml # GET /groups.xml
......
...@@ -31,26 +31,15 @@ class IssuesController < ApplicationController ...@@ -31,26 +31,15 @@ class IssuesController < ApplicationController
rescue_from Query::StatementInvalid, :with => :query_statement_invalid rescue_from Query::StatementInvalid, :with => :query_statement_invalid
helper :journals
helper :projects
include ProjectsHelper include ProjectsHelper
helper :custom_fields
include CustomFieldsHelper include CustomFieldsHelper
helper :issue_relations
include IssueRelationsHelper include IssueRelationsHelper
helper :watchers
include WatchersHelper include WatchersHelper
helper :attachments
include AttachmentsHelper include AttachmentsHelper
helper :queries
include QueriesHelper include QueriesHelper
helper :repositories
include RepositoriesHelper include RepositoriesHelper
helper :sort
include SortHelper include SortHelper
include IssuesHelper include IssuesHelper
helper :timelog
helper :gantt
include Redmine::Export::PDF include Redmine::Export::PDF
verify :method => [:post, :delete], verify :method => [:post, :delete],
......
...@@ -23,13 +23,8 @@ class JournalsController < ApplicationController ...@@ -23,13 +23,8 @@ class JournalsController < ApplicationController
accept_key_auth :index accept_key_auth :index
menu_item :issues menu_item :issues
helper :issues
helper :custom_fields
helper :queries
include QueriesHelper include QueriesHelper
helper :sort
include SortHelper include SortHelper
helper :custom_fields
def index def index
retrieve_query retrieve_query
......
...@@ -25,8 +25,6 @@ class MessagesController < ApplicationController ...@@ -25,8 +25,6 @@ class MessagesController < ApplicationController
verify :method => :post, :only => [ :reply, :destroy ], :redirect_to => { :action => :show } verify :method => :post, :only => [ :reply, :destroy ], :redirect_to => { :action => :show }
verify :xhr => true, :only => :quote verify :xhr => true, :only => :quote
helper :watchers
helper :attachments
include AttachmentsHelper include AttachmentsHelper
REPLIES_PER_PAGE = 25 unless const_defined?(:REPLIES_PER_PAGE) REPLIES_PER_PAGE = 25 unless const_defined?(:REPLIES_PER_PAGE)
......
...@@ -18,9 +18,6 @@ ...@@ -18,9 +18,6 @@
class MyController < ApplicationController class MyController < ApplicationController
before_filter :require_login before_filter :require_login
helper :issues
helper :users
helper :custom_fields
BLOCKS = { 'issuesassignedtome' => :label_assigned_to_me_issues, BLOCKS = { 'issuesassignedtome' => :label_assigned_to_me_issues,
'issuesreportedbyme' => :label_reported_issues, 'issuesreportedbyme' => :label_reported_issues,
......
...@@ -25,7 +25,6 @@ class NewsController < ApplicationController ...@@ -25,7 +25,6 @@ class NewsController < ApplicationController
before_filter :find_optional_project, :only => :index before_filter :find_optional_project, :only => :index
accept_key_auth :index accept_key_auth :index
helper :watchers
def index def index
case params[:format] case params[:format]
......
...@@ -32,14 +32,9 @@ class ProjectsController < ApplicationController ...@@ -32,14 +32,9 @@ class ProjectsController < ApplicationController
end end
end end
helper :sort
include SortHelper include SortHelper
helper :custom_fields
include CustomFieldsHelper include CustomFieldsHelper
helper :issues
helper :queries
include QueriesHelper include QueriesHelper
helper :repositories
include RepositoriesHelper include RepositoriesHelper
include ProjectsHelper include ProjectsHelper
......
...@@ -18,7 +18,6 @@ ...@@ -18,7 +18,6 @@
class SearchController < ApplicationController class SearchController < ApplicationController
before_filter :find_optional_project before_filter :find_optional_project
helper :messages
include MessagesHelper include MessagesHelper
def index def index
......
...@@ -3,12 +3,8 @@ class TimeEntryReportsController < ApplicationController ...@@ -3,12 +3,8 @@ class TimeEntryReportsController < ApplicationController
before_filter :find_optional_project before_filter :find_optional_project
before_filter :load_available_criterias before_filter :load_available_criterias
helper :sort
include SortHelper include SortHelper
helper :issues
helper :timelog
include TimelogHelper include TimelogHelper
helper :custom_fields
include CustomFieldsHelper include CustomFieldsHelper
def report def report
......
...@@ -23,11 +23,8 @@ class TimelogController < ApplicationController ...@@ -23,11 +23,8 @@ class TimelogController < ApplicationController
before_filter :find_optional_project, :only => [:index] before_filter :find_optional_project, :only => [:index]
accept_key_auth :index, :show, :create, :update, :destroy accept_key_auth :index, :show, :create, :update, :destroy
helper :sort
include SortHelper include SortHelper
helper :issues
include TimelogHelper include TimelogHelper
helper :custom_fields
include CustomFieldsHelper include CustomFieldsHelper
def index def index
......
...@@ -22,9 +22,7 @@ class UsersController < ApplicationController ...@@ -22,9 +22,7 @@ class UsersController < ApplicationController
before_filter :find_user, :only => [:show, :edit, :update, :edit_membership, :destroy_membership] before_filter :find_user, :only => [:show, :edit, :update, :edit_membership, :destroy_membership]
accept_key_auth :index, :show, :create, :update accept_key_auth :index, :show, :create, :update
helper :sort
include SortHelper include SortHelper
helper :custom_fields
include CustomFieldsHelper include CustomFieldsHelper
def index def index
......
...@@ -23,8 +23,6 @@ class VersionsController < ApplicationController ...@@ -23,8 +23,6 @@ class VersionsController < ApplicationController
before_filter :find_project, :only => [:index, :new, :create, :close_completed] before_filter :find_project, :only => [:index, :new, :create, :close_completed]
before_filter :authorize before_filter :authorize
helper :custom_fields
helper :projects
def index def index
@trackers = @project.trackers.find(:all, :order => 'position') @trackers = @project.trackers.find(:all, :order => 'position')
......
...@@ -38,9 +38,7 @@ class WikiController < ApplicationController ...@@ -38,9 +38,7 @@ class WikiController < ApplicationController
verify :method => :post, :only => [:protect], :redirect_to => { :action => :show } verify :method => :post, :only => [:protect], :redirect_to => { :action => :show }
helper :attachments
include AttachmentsHelper include AttachmentsHelper
helper :watchers
# List of pages, sorted alphabetically and by parent (hierarchy) # List of pages, sorted alphabetically and by parent (hierarchy)
def index def index
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment