update fixtures so that application layouts can be loaded
Stephen McLeod
committed May 04, 2011
commit 928f53c54ae2ed9aa547e16bcc98d74bd36d3ff3
Showing 1
changed file with
2 additions
and 0 deletions
comfortable_mexican_sofa/fixtures.rb b/lib/comfortable_mexican_sofa/fixtures.rb
+2
-0
| @@ | @@ -18,9 +18,11 @@ module ComfortableMexicanSofa::Fixtures |
| if layout.new_record? || File.mtime(file_path) > layout.updated_at | |
| attributes = YAML.load_file(file_path).symbolize_keys! | |
| layout.label = attributes[:label] || slug.titleize | |
| + | layout.app_layout = attributes[:app_layout] || parent.try(:app_layout) |
| end | |
| elsif layout.new_record? | |
| layout.label = slug.titleize | |
| + | layout.app_layout = parent.try(:app_layout) |
| end | |
| # updating content | |