Added rdoc comments and using the Base class now
This commit is contained in:
+5
-1
@@ -1,7 +1,9 @@
|
||||
require_dependency 'issue'
|
||||
|
||||
# Patches Redmine's Issues dynamically. Adds a relationship
|
||||
# Issue +belongs_to+ to Deliverable
|
||||
module IssuePatch
|
||||
def self.included(base)
|
||||
def self.included(base) # :nodoc:
|
||||
base.extend(ClassMethods)
|
||||
|
||||
base.send(:include, InstanceMethods)
|
||||
@@ -36,6 +38,8 @@ module IssuePatch
|
||||
end
|
||||
|
||||
module InstanceMethods
|
||||
# Wraps the association to get the Deliverable subject. Needed for the
|
||||
# Query and filtering
|
||||
def deliverable_subject
|
||||
unless self.deliverable.nil?
|
||||
return self.deliverable.subject
|
||||
|
||||
Reference in New Issue
Block a user