Permalink
Browse files

Switching one of the scope examples to use do/end block syntax.

  • Loading branch information...
1 parent 90659f6 commit fcf4723013de7e6850fca84318421d23915d0f81 @pat pat committed Apr 11, 2011
Showing with 3 additions and 2 deletions.
  1. +3 −2 ts/en/scopes.textile
View
@@ -29,9 +29,10 @@ class Article < ActiveRecord::Base
sphinx_scope(:by_name) { |name|
{:conditions => {:name => name}}
}
- sphinx_scope(:by_point) { |lat, lng|
+ # Here's an example using do/end instead of {} blocks.
+ sphinx_scope(:by_point) do |lat, lng|
{:geo => [lat, lng]}
- }
+ end
# ...
end

0 comments on commit fcf4723

Please sign in to comment.