fixing slug loading so it uses fixtures
Oleg
committed Apr 13, 2011
commit 873b4195c3b407f9629299730a15b81f4e8acbc9
Showing 1
changed file with
1 additions
and 1 deletions
comfortable_mexican_sofa/view_methods.rb b/lib/comfortable_mexican_sofa/view_methods.rb
+1
-1
| @@ | @@ -23,7 +23,7 @@ module ComfortableMexicanSofa::ViewMethods |
| # Content of a snippet. Example: | |
| # cms_snippet_content(:my_snippet) | |
| def cms_snippet_content(snippet_slug) | |
| - | return '' unless snippet = CmsSnippet.find_by_slug(snippet_slug) |
| + | return '' unless snippet = CmsSnippet.load_for_slug(@cms_site, snippet_slug) |
| snippet.content.to_s.html_safe | |
| end | |