OpenProject is the leading open source project management software.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
openproject/lib/plugins/acts_as_journalized/init.rb

29 lines
952 B

#-- copyright
# OpenProject is a project management system.
#
# Copyright (C) 2012-2013 the OpenProject Team
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License version 3.
#
# See doc/COPYRIGHT.rdoc for more details.
#++
#-- encoding: UTF-8
$LOAD_PATH.unshift File.expand_path("../lib/", __FILE__)
require "acts_as_journalized"
ActiveRecord::Base.send(:include, Redmine::Acts::Journalized)
Rails.configuration.to_prepare do
# Model
require "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 File.dirname(__FILE__) + '/lib/acts_as_journalized/journal_patch'
# require File.dirname(__FILE__) + '/lib/acts_as_journalized/journal_observer_patch'
# require File.dirname(__FILE__) + '/lib/acts_as_journalized/activity_fetcher_patch'
end