From 51b97ef1d465fd80f79e235ad1eccf76ac193fbd Mon Sep 17 00:00:00 2001 From: David Somers Date: Wed, 21 Aug 2013 14:52:17 +0100 Subject: [PATCH] Check #blocks_attributes_changed when importing pages. --- lib/comfortable_mexican_sofa/fixture/page.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/comfortable_mexican_sofa/fixture/page.rb b/lib/comfortable_mexican_sofa/fixture/page.rb index e70a273e2..b50b64443 100644 --- a/lib/comfortable_mexican_sofa/fixture/page.rb +++ b/lib/comfortable_mexican_sofa/fixture/page.rb @@ -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}") @@ -119,4 +119,4 @@ def export! end end end -end \ No newline at end of file +end