module ProactiveCount
Constants
- VERSION
Public Instance Methods
pcount()
click to toggle source
# File lib/proactive_count.rb, line 5 def pcount ActiveRecord::Base.connection.select_value( %(SELECT reltuples FROM pg_class WHERE relname='#{table_name}';) ).to_i end