Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
O
OHR Support
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
97
Issues
97
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
OHR Support
Commits
1eee7312
Commit
1eee7312
authored
Apr 20, 2011
by
Eric Davis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[
#289
] Remove single helpers in favor of :all in ApplicationController
parent
d1441707
Hide whitespace changes
Inline
Side-by-side
Showing
23 changed files
with
1 addition
and
60 deletions
+1
-60
account_controller.rb
app/controllers/account_controller.rb
+0
-1
admin_controller.rb
app/controllers/admin_controller.rb
+0
-1
application_controller.rb
app/controllers/application_controller.rb
+1
-0
boards_controller.rb
app/controllers/boards_controller.rb
+0
-3
calendars_controller.rb
app/controllers/calendars_controller.rb
+0
-4
context_menus_controller.rb
app/controllers/context_menus_controller.rb
+0
-1
documents_controller.rb
app/controllers/documents_controller.rb
+0
-1
enumerations_controller.rb
app/controllers/enumerations_controller.rb
+0
-1
files_controller.rb
app/controllers/files_controller.rb
+0
-1
gantts_controller.rb
app/controllers/gantts_controller.rb
+0
-5
groups_controller.rb
app/controllers/groups_controller.rb
+0
-1
issues_controller.rb
app/controllers/issues_controller.rb
+0
-11
journals_controller.rb
app/controllers/journals_controller.rb
+0
-5
messages_controller.rb
app/controllers/messages_controller.rb
+0
-2
my_controller.rb
app/controllers/my_controller.rb
+0
-3
news_controller.rb
app/controllers/news_controller.rb
+0
-1
projects_controller.rb
app/controllers/projects_controller.rb
+0
-5
search_controller.rb
app/controllers/search_controller.rb
+0
-1
time_entry_reports_controller.rb
app/controllers/time_entry_reports_controller.rb
+0
-4
timelog_controller.rb
app/controllers/timelog_controller.rb
+0
-3
users_controller.rb
app/controllers/users_controller.rb
+0
-2
versions_controller.rb
app/controllers/versions_controller.rb
+0
-2
wiki_controller.rb
app/controllers/wiki_controller.rb
+0
-2
No files found.
app/controllers/account_controller.rb
View file @
1eee7312
...
...
@@ -16,7 +16,6 @@
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
class
AccountController
<
ApplicationController
helper
:custom_fields
include
CustomFieldsHelper
# prevents login action to be filtered by check_if_login_required application scope filter
...
...
app/controllers/admin_controller.rb
View file @
1eee7312
...
...
@@ -20,7 +20,6 @@ class AdminController < ApplicationController
before_filter
:require_admin
helper
:sort
include
SortHelper
def
index
...
...
app/controllers/application_controller.rb
View file @
1eee7312
...
...
@@ -19,6 +19,7 @@ require 'uri'
require
'cgi'
class
ApplicationController
<
ActionController
::
Base
helper
:all
protected
...
...
app/controllers/boards_controller.rb
View file @
1eee7312
...
...
@@ -20,11 +20,8 @@ class BoardsController < ApplicationController
before_filter
:find_project
,
:find_board_if_available
,
:authorize
accept_key_auth
:index
,
:show
helper
:messages
include
MessagesHelper
helper
:sort
include
SortHelper
helper
:watchers
include
WatchersHelper
def
index
...
...
app/controllers/calendars_controller.rb
View file @
1eee7312
...
...
@@ -4,11 +4,7 @@ class CalendarsController < ApplicationController
rescue_from
Query
::
StatementInvalid
,
:with
=>
:query_statement_invalid
helper
:issues
helper
:projects
helper
:queries
include
QueriesHelper
helper
:sort
include
SortHelper
def
show
...
...
app/controllers/context_menus_controller.rb
View file @
1eee7312
class
ContextMenusController
<
ApplicationController
helper
:watchers
def
issues
@issues
=
Issue
.
visible
.
all
(
:conditions
=>
{
:id
=>
params
[
:ids
]},
:include
=>
:project
)
...
...
app/controllers/documents_controller.rb
View file @
1eee7312
...
...
@@ -23,7 +23,6 @@ class DocumentsController < ApplicationController
before_filter
:find_project_from_association
,
:except
=>
[
:index
,
:new
]
before_filter
:authorize
helper
:attachments
def
index
@sort_by
=
%w(category date title author)
.
include?
(
params
[
:sort_by
])
?
params
[:
sort_by
]
:
'category'
...
...
app/controllers/enumerations_controller.rb
View file @
1eee7312
...
...
@@ -20,7 +20,6 @@ class EnumerationsController < ApplicationController
before_filter
:require_admin
helper
:custom_fields
include
CustomFieldsHelper
def
index
...
...
app/controllers/files_controller.rb
View file @
1eee7312
...
...
@@ -4,7 +4,6 @@ class FilesController < ApplicationController
before_filter
:find_project_by_project_id
before_filter
:authorize
helper
:sort
include
SortHelper
def
index
...
...
app/controllers/gantts_controller.rb
View file @
1eee7312
...
...
@@ -4,12 +4,7 @@ class GanttsController < ApplicationController
rescue_from
Query
::
StatementInvalid
,
:with
=>
:query_statement_invalid
helper
:gantt
helper
:issues
helper
:projects
helper
:queries
include
QueriesHelper
helper
:sort
include
SortHelper
include
Redmine
::
Export
::
PDF
...
...
app/controllers/groups_controller.rb
View file @
1eee7312
...
...
@@ -20,7 +20,6 @@ class GroupsController < ApplicationController
before_filter
:require_admin
helper
:custom_fields
# GET /groups
# GET /groups.xml
...
...
app/controllers/issues_controller.rb
View file @
1eee7312
...
...
@@ -31,26 +31,15 @@ class IssuesController < ApplicationController
rescue_from
Query
::
StatementInvalid
,
:with
=>
:query_statement_invalid
helper
:journals
helper
:projects
include
ProjectsHelper
helper
:custom_fields
include
CustomFieldsHelper
helper
:issue_relations
include
IssueRelationsHelper
helper
:watchers
include
WatchersHelper
helper
:attachments
include
AttachmentsHelper
helper
:queries
include
QueriesHelper
helper
:repositories
include
RepositoriesHelper
helper
:sort
include
SortHelper
include
IssuesHelper
helper
:timelog
helper
:gantt
include
Redmine
::
Export
::
PDF
verify
:method
=>
[
:post
,
:delete
],
...
...
app/controllers/journals_controller.rb
View file @
1eee7312
...
...
@@ -23,13 +23,8 @@ class JournalsController < ApplicationController
accept_key_auth
:index
menu_item
:issues
helper
:issues
helper
:custom_fields
helper
:queries
include
QueriesHelper
helper
:sort
include
SortHelper
helper
:custom_fields
def
index
retrieve_query
...
...
app/controllers/messages_controller.rb
View file @
1eee7312
...
...
@@ -25,8 +25,6 @@ class MessagesController < ApplicationController
verify
:method
=>
:post
,
:only
=>
[
:reply
,
:destroy
],
:redirect_to
=>
{
:action
=>
:show
}
verify
:xhr
=>
true
,
:only
=>
:quote
helper
:watchers
helper
:attachments
include
AttachmentsHelper
REPLIES_PER_PAGE
=
25
unless
const_defined?
(
:REPLIES_PER_PAGE
)
...
...
app/controllers/my_controller.rb
View file @
1eee7312
...
...
@@ -18,9 +18,6 @@
class
MyController
<
ApplicationController
before_filter
:require_login
helper
:issues
helper
:users
helper
:custom_fields
BLOCKS
=
{
'issuesassignedtome'
=>
:label_assigned_to_me_issues
,
'issuesreportedbyme'
=>
:label_reported_issues
,
...
...
app/controllers/news_controller.rb
View file @
1eee7312
...
...
@@ -25,7 +25,6 @@ class NewsController < ApplicationController
before_filter
:find_optional_project
,
:only
=>
:index
accept_key_auth
:index
helper
:watchers
def
index
case
params
[
:format
]
...
...
app/controllers/projects_controller.rb
View file @
1eee7312
...
...
@@ -32,14 +32,9 @@ class ProjectsController < ApplicationController
end
end
helper
:sort
include
SortHelper
helper
:custom_fields
include
CustomFieldsHelper
helper
:issues
helper
:queries
include
QueriesHelper
helper
:repositories
include
RepositoriesHelper
include
ProjectsHelper
...
...
app/controllers/search_controller.rb
View file @
1eee7312
...
...
@@ -18,7 +18,6 @@
class
SearchController
<
ApplicationController
before_filter
:find_optional_project
helper
:messages
include
MessagesHelper
def
index
...
...
app/controllers/time_entry_reports_controller.rb
View file @
1eee7312
...
...
@@ -3,12 +3,8 @@ class TimeEntryReportsController < ApplicationController
before_filter
:find_optional_project
before_filter
:load_available_criterias
helper
:sort
include
SortHelper
helper
:issues
helper
:timelog
include
TimelogHelper
helper
:custom_fields
include
CustomFieldsHelper
def
report
...
...
app/controllers/timelog_controller.rb
View file @
1eee7312
...
...
@@ -23,11 +23,8 @@ class TimelogController < ApplicationController
before_filter
:find_optional_project
,
:only
=>
[
:index
]
accept_key_auth
:index
,
:show
,
:create
,
:update
,
:destroy
helper
:sort
include
SortHelper
helper
:issues
include
TimelogHelper
helper
:custom_fields
include
CustomFieldsHelper
def
index
...
...
app/controllers/users_controller.rb
View file @
1eee7312
...
...
@@ -22,9 +22,7 @@ class UsersController < ApplicationController
before_filter
:find_user
,
:only
=>
[
:show
,
:edit
,
:update
,
:edit_membership
,
:destroy_membership
]
accept_key_auth
:index
,
:show
,
:create
,
:update
helper
:sort
include
SortHelper
helper
:custom_fields
include
CustomFieldsHelper
def
index
...
...
app/controllers/versions_controller.rb
View file @
1eee7312
...
...
@@ -23,8 +23,6 @@ class VersionsController < ApplicationController
before_filter
:find_project
,
:only
=>
[
:index
,
:new
,
:create
,
:close_completed
]
before_filter
:authorize
helper
:custom_fields
helper
:projects
def
index
@trackers
=
@project
.
trackers
.
find
(
:all
,
:order
=>
'position'
)
...
...
app/controllers/wiki_controller.rb
View file @
1eee7312
...
...
@@ -38,9 +38,7 @@ class WikiController < ApplicationController
verify
:method
=>
:post
,
:only
=>
[
:protect
],
:redirect_to
=>
{
:action
=>
:show
}
helper
:attachments
include
AttachmentsHelper
helper
:watchers
# List of pages, sorted alphabetically and by parent (hierarchy)
def
index
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment