forked from hidakatsuya/redmine_issue_wiki_journal
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
44d4b12
commit e5e3729
Showing
6 changed files
with
46 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,15 @@ | ||
require 'pathname' | ||
|
||
module IssueWikiJournal | ||
def self.root | ||
@root ||= Pathname.new(File.expand_path('../../', __FILE__)) | ||
end | ||
|
||
def self.version | ||
Redmine::Plugin.find(:roots).version | ||
class WikiChangeset | ||
def self.root | ||
@root ||= Pathname.new(File.expand_path('../../', __FILE__)) | ||
end | ||
|
||
def self.version | ||
Redmine::Plugin.find(:redmine_issue_wiki_journal).version | ||
end | ||
end | ||
end | ||
|
||
# Load libraries | ||
require_relative 'issue_wiki_journal/wiki_changeset' | ||
|
||
# Load hooks | ||
Dir[IssueWikiJournal.root.join('app/hooks/**/*_hooks.rb')].each {|f| require f } |
2 changes: 2 additions & 0 deletions
2
app/hooks/application_hooks.rb → lib/issue_wiki_journal/application_hooks.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
# /ApplicationHookshome/redmine/plugins/redmine_issue_wiki_journal/app/hooks/application_hooks.rb | ||
module IssueWikiJournal | ||
class ApplicationHooks < Redmine::Hook::ViewListener | ||
render_on :view_layouts_base_body_bottom, partial: 'layouts/body_bottom' | ||
end | ||
end | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters