File: init.rb

package info (click to toggle)
redmine-plugin-pretend 0.0.2+git20130821-4
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 168 kB
  • ctags: 30
  • sloc: ruby: 94; makefile: 35
file content (23 lines) | stat: -rw-r--r-- 603 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
require 'redmine'

require_dependency 'redmine_pretend/hooks'

Rails.logger.info 'Starting Pretend plugin for RedMine'

Redmine::Plugin.register :redmine_pretend do
  name 'Redmine Pretend plugin'
  author 'Leonid Batizhevsky'
  description 'Plugin to pretend selected user'
  version '2.0.0'
  url 'https://github.com/leonko/redmine_pretend'

  requires_redmine :version_or_higher => '2.0.0'
end

ActionDispatch::Reloader.to_prepare do
  ApplicationHelper.send :include, PretendHelper
end

ActionDispatch::Callbacks.to_prepare do
  require_dependency 'redmine_pretend/application_controller_patch'
end