Search
Project
General
Profile
Home
Projects
Help
Sign in
Register
Search
:
Redmine
All Projects
Redmine
Overview
Download
Activity
Roadmap
Issues
News
Wiki
Plugins
Forums
Repository
Download (946 Bytes)
Feature #18643
ยป init.rb
Alexander Kholodniak
, 2014-12-15 15:10
require
'dispatcher'
unless
Rails
::
VERSION
::
MAJOR
>=
3
if
Rails
::
VERSION
::
MAJOR
>=
3
ActionDispatch
::
Callbacks
.
to_prepare
do
require
'brightgrove_extensions'
end
else
Dispatcher
.
to_prepare
do
require
'brightgrove_extensions'
end
end
require
'redmine'
# - hack consists in adding "app/overrides" path of the plugin in Redmine's main #paths
# came from there https://github.com/twinslash/redmine_better_journal/commit/c726266068e3a7ff56ff6947dd244070cbaf6741
Rails
.
application
.
paths
[
"app/overrides"
]
||=
[]
Rails
.
application
.
paths
[
"app/overrides"
]
<<
File
.
expand_path
(
"../app/overrides"
,
__FILE__
)
Redmine
::
Plugin
.
register
:redmine_brightgrove_extensions
do
name
'Redmine Brightgrove extenstions'
author
'Mike Zarechenskiy'
description
'Extensions of existing redmine application for the Brightgrove company'
version
'0.0.1'
author_url
'https://github.com/DevMike'
requires_redmine
:version_or_higher
=>
'2.3.0'
end
(1-1/1)
Loading...