Permalink
Browse files

Fixed an error in the documentation, replaced default_scope with defa…

…ult_sphinx_scope.
  • Loading branch information...
mariovisic committed Feb 8, 2011
1 parent 16fdc6c commit c780a9edba0f8cc6e9bee5bc4af9778ce88f6fe0
Showing with 2 additions and 2 deletions.
  1. +2 −2 ts/en/scopes.textile
View
@@ -63,7 +63,7 @@ Feel free to add to the chain at any point - Thinking Sphinx won't populate the
h3. Default Scopes
-The default_scope method allows a sphinx scope to always be used when searching a model. This can be useful if all searches on a model require the scope is used.
+The @default_sphinx_scope@ method allows a sphinx scope to always be used when searching a model. This can be useful if all searches on a model require the scope is used.
{% highlight ruby %}
class Article < ActiveRecord::Base
@@ -77,7 +77,7 @@ class Article < ActiveRecord::Base
{:order => 'created_at DESC, @relevance DESC'}
}
- default_scope :latest_first
+ default_sphinx_scope :latest_first
end
{% endhighlight %}

0 comments on commit c780a9e

Please sign in to comment.