2011-10-29 16:19:11 +04:00
|
|
|
#-- encoding: UTF-8
|
2011-05-13 20:55:55 +04:00
|
|
|
$LOAD_PATH.unshift File.expand_path("../lib/", __FILE__)
|
|
|
|
|
|
|
|
require "acts_as_journalized"
|
|
|
|
ActiveRecord::Base.send(:include, Redmine::Acts::Journalized)
|
|
|
|
|
|
|
|
require 'dispatcher'
|
|
|
|
Dispatcher.to_prepare do
|
|
|
|
# Model
|
|
|
|
require_dependency "journal"
|
|
|
|
|
|
|
|
# this is for compatibility with current trunk
|
|
|
|
# once the plugin is part of the core, this will not be needed
|
|
|
|
# patches should then be ported onto the core
|
|
|
|
# require_dependency File.dirname(__FILE__) + '/lib/acts_as_journalized/journal_patch'
|
|
|
|
# require_dependency File.dirname(__FILE__) + '/lib/acts_as_journalized/journal_observer_patch'
|
|
|
|
# require_dependency File.dirname(__FILE__) + '/lib/acts_as_journalized/activity_fetcher_patch'
|
|
|
|
end
|