[#493] Force loading the classes of activity provider

This will cause the class to run acts_as_journal which will create the
Journal sub-classes and prevent uninitialized constants since the sub-classes
are created on the fly.
This commit is contained in:
Eric Davis 2011-07-01 15:27:12 -07:00
parent 6017e2712e
commit 2bb42e90a1
1 changed files with 2 additions and 0 deletions

View File

@ -1,3 +1,5 @@
Redmine::Activity.providers.values.flatten.uniq.collect(&:underscore).each {|klass| require_dependency klass }
class UpdateJournalsForActsAsJournalized < ActiveRecord::Migration
def self.up
# This is provided here for migrating up after the JournalDetails has been removed