Skip to content

Commit

Permalink
scope syntax fix
Browse files Browse the repository at this point in the history
  • Loading branch information
7even committed Nov 14, 2013
1 parent 3024aed commit 0028146
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/zodiac/activerecord.rb
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def zodiac_reader(dob_attribute, options = { sign_id_attribute: :zodiac_sign_id

# Person.gemini == Person.by_zodiac(3)
Zodiac.each_sign do |symbol, integer|
scope symbol, by_zodiac(integer)
scope symbol, -> { by_zodiac(integer) }
end
end
end
Expand Down

0 comments on commit 0028146

Please sign in to comment.