Skip to content
Browse files

rename module according to plugin

  • Loading branch information...
1 parent c00a056 commit 3134a84c1e88069b2e83cd4d2be582bef1e6d99f @yeah yeah committed
View
4 init.rb
@@ -1,6 +1,6 @@
require 'redmine'
require 'dispatcher'
-require 'redmine_closed_date/hooks'
+require 'redmine_closed_issue/hooks'
Redmine::Plugin.register :redmine_redmine_close_issue do
name 'Redmine Closed Date plugin'
@@ -12,5 +12,5 @@
end
Dispatcher.to_prepare do
- Query.send( :include, RedmineClosedDate::Patches::IssueQueryPatch) unless Query.include?(RedmineClosedDate::Patches::IssueQueryPatch)
+ Query.send( :include, RedmineClosedIssue::Patches::IssueQueryPatch) unless Query.include?(RedmineClosedIssue::Patches::IssueQueryPatch)
end
View
2 lib/redmine_closed_date/hooks.rb → lib/redmine_closed_issue/hooks.rb
@@ -1,4 +1,4 @@
-module RedmineClosedDate
+module RedmineClosedIssue
class ControllerHooks < Redmine::Hook::ViewListener
def controller_issues_new_before_save(context={})
if context[:issue] and context[:issue].status.is_closed? then
View
2 ..._closed_date/patches/issue_query_patch.rb → ...closed_issue/patches/issue_query_patch.rb
@@ -1,4 +1,4 @@
-module RedmineClosedDate
+module RedmineClosedIssue
module Patches
module IssueQueryPatch
def self.included(base) # :nodoc:

0 comments on commit 3134a84

Please sign in to comment.
Something went wrong with that request. Please try again.