Permalink
Browse files

Fixed an issue which occurs when adding to a stable rafinery instance…

…. Maybe due to changes in Active Record API?
  • Loading branch information...
1 parent 0490fb9 commit 59bc2999dd53ea3896440bcbf03e64cf141c8cc2 @Inza Inza committed Nov 25, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/extensions/page_extensions.rb
View
2 lib/extensions/page_extensions.rb
@@ -8,7 +8,7 @@ def self.included(base)
named_scope :for_snippet, lambda{ |snippet|
raise RuntimeError.new("Couldn't find Pages for a nil Snippet") if snippet.blank?
{
- :joins => {:parts, :snippets},
+ :joins => [:snippets_page_parts, :snippets],
:conditions => {:snippets_page_parts => {:snippet_id => snippet.id}}
}
}

0 comments on commit 59bc299

Please sign in to comment.