Skip to content

Commit

Permalink
Extensions should also have the unloadable method
Browse files Browse the repository at this point in the history
  • Loading branch information
lexrupy committed Apr 12, 2010
1 parent e6f4807 commit 883f654
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/software_project/redmine/current_version_extension.rb
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 883f654

Please sign in to comment.