Skip to content

Commit

Permalink
when journal is destroying also destroy associated question
Browse files Browse the repository at this point in the history
  • Loading branch information
lest committed May 14, 2010
1 parent a505e8f commit 7015317
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/question_journal_patch.rb
Expand Up @@ -6,7 +6,7 @@ def self.included(base) # :nodoc:

base.class_eval do
unloadable # Send unloadable so it will not be unloaded in development
has_one :question
has_one :question, :dependent => :destroy
end

end
Expand Down

0 comments on commit 7015317

Please sign in to comment.