Nuevo plugin Redmine Questions 0.0.7 light

This commit is contained in:
Manuel Cillero 2018-02-02 23:35:10 +01:00
parent c5b56fffec
commit 7de6fb4627
51 changed files with 2162 additions and 0 deletions

View file

@ -0,0 +1,16 @@
module RedmineQuestions
module Patches
module ActsAsVotableVotePatch
def self.included(base) # :nodoc:
base.class_eval do
unloadable # Send unloadable so it will not be unloaded in development
attr_accessible :votable, :voter, :vote_scope
end
end
end
end
end
unless RedmineCrm::ActsAsVotable::Vote.included_modules.include?(RedmineQuestions::Patches::ActsAsVotableVotePatch)
RedmineCrm::ActsAsVotable::Vote.send(:include, RedmineQuestions::Patches::ActsAsVotableVotePatch)
end