Skip to content

Commit

Permalink
Fix async_count for models
Browse files Browse the repository at this point in the history
  • Loading branch information
tmm1 committed Jul 2, 2009
1 parent f79ac4a commit 43a4e24
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/sequel/async.rb
Expand Up @@ -106,7 +106,7 @@ def async_count &cb
from_self.async_count(&cb)
else
clone(STOCK_COUNT_OPTS).async_each{|r|
yield r.values.first.to_i
yield r.is_a?(Hash) ? r.values.first.to_i : r.values.values.first.to_i
}
end
nil
Expand Down

0 comments on commit 43a4e24

Please sign in to comment.