Skip to content

Commit

Permalink
refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
Dmitriy Brodnitskiy committed Feb 27, 2013
1 parent d75f8d2 commit 5583c71
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 21 deletions.
7 changes: 0 additions & 7 deletions lib/patches/redmine_group_incognito_patch.rb

This file was deleted.

2 changes: 1 addition & 1 deletion lib/patches/redmine_helper_patch.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ def define_project
if params[:controller] == 'issues'
params[:project_id] ? Project.find(params[:project_id]) : Issue.find(params[:id]).project
elsif params[:controller] == 'projects'|| params[:controller] == 'activities' || params[:controller] == 'reports'
Project.find(params[:id]) if params[:id]
Project.find(params[:id])||@project
elsif params[:controller] == 'journals'
Journal.find(params[:id]).issue.project
end
Expand Down
11 changes: 0 additions & 11 deletions lib/patches/redmine_user_incognito_patch.rb

This file was deleted.

2 changes: 0 additions & 2 deletions lib/redmine_user_incognito.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
require 'patches/redmine_query_incognito_patch'
require 'patches/redmine_queries_helper_incognito_patch'
require 'patches/redmine_attachments_helper_incognito_patch'
require 'patches/redmine_user_incognito_patch'
require 'patches/redmine_reports_controller_incognito_patch'
require 'patches/redmine_versions_helper_incognito_patch'
require 'patches/redmine_helper_patch'
Expand All @@ -13,7 +12,6 @@
Query.send(:include, RedmineQueryIncognitoPatch)
QueriesHelper.send(:include, RedmineQueriesHelperIncognitoPatch)
AttachmentsHelper.send(:include, RedmineAttachmentsHelperIncognitoPatch)
User.send(:include, RedmineUserIncognitoPatch)
ReportsController.send(:include, RedmineReportsControllerIncognitoPatch)
VersionsHelper.send(:include, RedmineVersionsHelperIncognitoPatch)
end

0 comments on commit 5583c71

Please sign in to comment.