lib/redmineup.rb in redmineup-1.0.3 vs lib/redmineup.rb in redmineup-1.0.4
- old
+ new
@@ -47,9 +47,11 @@
module Redmineup
GEM_NAME = 'redmineup'.freeze
end
+require 'application_record' unless defined?(ApplicationRecord)
+
if defined?(ActiveRecord::Base)
ActiveRecord::Base.send :include, Redmineup::ActsAsList::List
ActiveRecord::Base.extend(Redmineup::ActsAsVotable::Voter)
ActiveRecord::Base.extend(Redmineup::ActsAsVotable::Votable)
end