diff --git a/contrib/ruby/lib/trilogy/result.rb b/contrib/ruby/lib/trilogy/result.rb index 3a09bb93..28405d0a 100644 --- a/contrib/ruby/lib/trilogy/result.rb +++ b/contrib/ruby/lib/trilogy/result.rb @@ -6,6 +6,8 @@ def count rows.count end + alias_method :size, :count + def each_hash return enum_for(:each_hash) unless block_given?