Skip to content

Commit

Permalink
Check #blocks_attributes_changed when importing pages.
Browse files Browse the repository at this point in the history
  • Loading branch information
jalada committed Aug 21, 2013
1 parent 42953a5 commit 51b97ef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/comfortable_mexican_sofa/fixture/page.rb
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def import!(path = self.path, parent = nil)
page.blocks_attributes = blocks_attributes if blocks_attributes.present?

# saving
if page.changed? || self.force_import
if page.changed? || page.blocks_attributes_changed || self.force_import
if page.save
save_categorizations!(page, categories)
ComfortableMexicanSofa.logger.warn("[FIXTURES] Imported Page \t #{page.full_path}")
Expand Down Expand Up @@ -119,4 +119,4 @@ def export!
end
end
end
end
end

0 comments on commit 51b97ef

Please sign in to comment.