Skip to content
Browse files

Extensions should also have the unloadable method

  • Loading branch information...
1 parent e6f4807 commit 883f65450f543f06a7f37d3787e98a57470dbce5 @lexrupy lexrupy committed
Showing with 2 additions and 0 deletions.
  1. +2 −0 lib/software_project/redmine/current_version_extension.rb
View
2 lib/software_project/redmine/current_version_extension.rb
@@ -3,6 +3,7 @@ module Redmine
module VersionExtension
def self.included(base)
base.class_eval do
+ unloadable
has_many :user_stories, :class_name => 'UserStory', :foreign_key => 'version_id'
end
end
@@ -11,6 +12,7 @@ def self.included(base)
module IssueExtension
def self.included(base)
base.class_eval do
+ unloadable
belongs_to :user_story, :class_name => 'UserStory', :foreign_key => 'user_story_id'
end
end

0 comments on commit 883f654

Please sign in to comment.
Something went wrong with that request. Please try again.