I'm looking for a part-time remote job.

Hire me


I'm the author of:

Mastering Redmine is a comprehensive guide with tips, tricks and best practices, and an easy-to-learn structure.

Check the book's project or

Buy the book

Social pages of the book:

By buying this book you also donate to Redmine (see this page).


Follow me:

dispatcher.diff

Riceball LEE, 19 Sep 2011 08:08

Download (653 Bytes)

View differences:

init.rb (working copy)
1 1
require 'redmine'
2 2
require 'dispatcher'
3 3

  
4
require_dependency 'principal'
5
require_dependency 'user'
6 4

  
7
require_dependency 'profile_hook'
8

  
9 5
RAILS_DEFAULT_LOGGER.info 'Starting Extended Profile plugin for Redmine'
10 6

  
11 7
Dispatcher.to_prepare :extended_profile_plugin do
8
    require_dependency 'principal'
9
    require_dependency 'user'
10
    
11
    require_dependency 'profile_hook'
12 12
    unless User.included_modules.include?(ExtendedUserPatch)
13 13
        User.send(:include, ExtendedUserPatch)
14 14
    end
Terms of use | Privacy policy