Browse files

might be nil

  • Loading branch information...
1 parent c3d393b commit d44d204de3013538b58e93ecf6fa94d580b91804 @defunkt committed Feb 16, 2008
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/ambition/api.rb
View
2 lib/ambition/api.rb
@@ -37,7 +37,7 @@ def detect(&block)
def first(count = 1)
sliced = slice(0, count)
- count == 1 ? sliced.kick.first : sliced
+ count == 1 ? Array(sliced.kick).first : sliced
end
def each(&block)

0 comments on commit d44d204

Please sign in to comment.