Nuevo plugin Redmine Questions 0.0.7 light
This commit is contained in:
parent
c5b56fffec
commit
7de6fb4627
51 changed files with 2162 additions and 0 deletions
16
plugins/redmine_questions/lib/acts_as_votable_vote_patch.rb
Normal file
16
plugins/redmine_questions/lib/acts_as_votable_vote_patch.rb
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue