Skip to content

Commit

Permalink
When we load parts we should load their translations too.
Browse files Browse the repository at this point in the history
  • Loading branch information
parndt committed Apr 8, 2011
1 parent 6c55f82 commit 191d8d5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pages/app/models/page.rb
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ def translation
:class_name => "PagePart",
:order => "position ASC",
:inverse_of => :page,
:dependent => :destroy
:dependent => :destroy,
:include => :translations

accepts_nested_attributes_for :parts, :allow_destroy => true

Expand Down

0 comments on commit 191d8d5

Please sign in to comment.