Module: ActiveResource::RetrieveHeaders::InstanceMethods

Defined in:
lib/activeresource-ext.rb

Instance Method Summary collapse

Instance Method Details

#last_countObject



27
28
29
# File 'lib/activeresource-ext.rb', line 27

def last_count
  @last_count ||= (c = connection.headers['x-query-count']) ? c[0].to_i : nil
end